mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
* (battery.lisp) New error condition, battery-not-found.
%read-battery-file: Resignal file-not-found error as a battery-not
found one
Add restart to prompt the user for a new battery-name when the
current one is not found.
Add a handler for battery-not-found error with previous restart
current-battery-charge: Add variable *battery-charge-refresh-time*
to allow the user to configure how frequently the battery charge
is recalculated.
Move commentary section from the file header to the package documentation.
* (package.lisp) Delete file. Package definition moved to battery.lisp
* (battery.asd) Add version, mantainer information and missing dependencies
* (README.org) Add suggestions for improvements
331 B
331 B
Usage
Put:
(load-module "battery")
In your ~/.stumpwmrc
Then you can use "%b" in your mode line format.
Notes
This is specific to Linux.
Possible Improvements
- figure out how to signal a recalculation when charger is plugged.
- Benchmark the use of Hashtables of alists or plists.