Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Latest commit

 

History

History
56 lines (38 loc) · 1.63 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.63 KB

CHIP battery status for xfce4 desktop

A simple script to display battery percentage on the xfce4 desktop of NextThing.co's CHIP

Works nicely with PocketCHIP.

chip-battery-status xfce genmon preview

How to install

Download/clone the files to your CHIP.

cd chip-battery-status
sudo ./install.sh

Now you need to add a panel item to your xfce4 desktop.

  1. Right-click (or Ctrl-click) on an existing panel item, e.g your clock. Choose Panel > Add New Items...

xfce panel item setup #1

  1. Select Generic Monitor from the list and hit Add

xfce panel item setup #2

  1. You'll see (genmon) xxx appear in your panel. Right-click (or Ctrl-click) it and choose Properties

xfce panel item setup #3

  1. In the Command field enter chip-battery-xfce-genmon and for the Period (s) enter 5. Hit Close

xfce panel item setup #4

  1. Enjoy. 🍹 🌴

How to uninstall

sudo ./uninstall.sh

This will disable the battery status polling service and remove previously-installed scripts and files.

It will not remove the desktop panel item. To remove that simply right-click (or Ctrl-click) the item and select Remove.

Customisation

You can change the way the battery status is displayed by editing /usr/local/bin/chip-battery-xfce-genmon.

Follow the instructions on the xfce4-genmon-plugin page to change colours, add images, etc.