stumpwm.stumpwm-contrib/modeline/battery-portable
goose121 8851f78a2b
Use absolute value of current_now
It seems on my system that there has been a recent kernel change where `current_now` is reported negative when discharging, leading to no reported time remaining, only a dash; given this is only on certain kernel versions, it is perhaps better to just take the absolute value of `current_now` when calculating time remaining, just to remain compatible with both
2025-07-09 15:13:34 -06:00
..
battery-portable.asd Added meaningful descriptions to all non-documented modules 2018-03-15 22:34:26 -04:00
battery-portable.lisp Use absolute value of current_now 2025-07-09 15:13:34 -06:00
package.lisp Adding all the current files 2014-03-01 23:33:38 -05:00
README.org Automatically try both procfs and sysfs if sysfs fails 2020-03-14 20:55:18 -07:00

Usage

To load this module, place

    (load-module "battery-portable")

in your .stumpwmrc. Battery information is then available via %B in your mode-line config.