stumpwm.stumpwm-contrib/modeline/battery/README.org
Javier Olaechea 9369f5bdf1 Handle the case when battery is not found.
* (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
2015-07-05 03:27:26 -05:00

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.