~fincham/battery

Super basic UPower battery meter
Slight formatting fix
Better error handling
Better docstrings

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~fincham/battery
read/write
git@git.sr.ht:~fincham/battery

You can also use your local clone with git send-email.

#battery

Interrogate upowerd over dbus to see what's up with the synthesised composite battery device (DisplayDevice). No promises.

On e.g. Lenovo laptops with multiple batteries this produces a nice one line summary of the status of both batteries as an aggregate.

Would go well with something like i3blocks at a slow refresh rate (e.g. 15 seconds).