Battery information module for StumpWM
- trivial-battery package installed
cd ~/.stumpwm.d/modules/
git clone https://github.com/Junker/stumpwm-battery battery
`
;; (ql:quickload "trivial-battery")
(stumpwm:add-to-load-path "~/.stumpwm.d/modules/battery")
(load-module "battery")
(setf battery:*notify-levels* '((10 . :critical)
(30 . :warning)
(45 . :warning)))
(battery:init)
battery-status
battery:*check-interval*
- Interval in seconds for battery check (Default: 15).battery:*notify-levels*
- List of notification levels. Set it to NIL to disable notifications.battery:*percentage*
- Current battery percentage.battery:*chargingp*
- Current battery charging status.
%B
- battery formatter
battery:*modeline-fmt*
- format of battery modeline (default: "%c %b")%c
- battery charging status ("+/-")%b
- battery percentage