Commit graph

6 commits

Author SHA1 Message Date
Daniel Eklöf
2fdd419600 module/battery: use log framework 2018-12-18 19:37:10 +01:00
Daniel Eklöf
e186c3447d module/battery: remove unused left/right spacing options 2018-12-16 19:17:14 +01:00
Daniel Eklöf
8f7fba72a5 module/battery: remove inferior error checks 2018-12-16 17:09:33 +01:00
Daniel Eklöf
a9681dd19c cleanup 2018-12-16 17:08:38 +01:00
Daniel Eklöf
fa3c17aa4a module/battery: use libudev to monitor for battery changes
This allows us to detect plug/unplug events immediately, instead of
having to wait for the next poll event.

Unfortunately, capacity changes do not appear to generate events :(
2018-12-16 17:04:44 +01:00
Daniel Eklöf
6a0385e294 module/battery: monitors battery state and capacity 2018-12-16 15:58:17 +01:00