Runit service for monitoring your battery levels if discharging, sending notifications and suspending when below configured thresholds.
- X Session
- libnotify
- A battery ;P
mkdir -p /etc/sv/batteryd
cp -r ./* /etc/sv/batteryd
ensure root is owner and group...
Check conf file for available and settable configurables.
Should be reusable even if you don't have a runit specific system
If you're missing the notifications lib, you can disable the strict exit
code checking by commenting out set -e
.
May also contain useful parts, such as a portable way for notifying all users with active DISPLAY.