Based on headsetcontrol hsctrl2X creates a battery percentage panel for gnome via KStatusNotifierItem/AppIndicator or for slstatus.
- libappindicator (gtk3)
- libnotify
- python-gobject
- headsetcontrol
- KStatusNotifierItem/AppIndicator
- Update
MAX_BATTERY_LIFE
accordingly to your headset - Install requirements
- Test:
python hsctrl2gnome.py
or./hsctrl2gnome.py
- If everything works: Run
./setup
which will add hsctrl2gnome to gnome's autostart
- Update
MAX_BATTERY
accordingly to your headset - Add
headsetcontrol.c
toslstatus/components/
and add it toslstatus/Makefile
- Re
$ make
and re# make install
slstatus - Restart slstatus
Have fun!
This is a simplified version of headset-charge-indicator