| Age | Commit message (Collapse) | Author |
|
Previously low battery alerts only depend on the ac variable.
The ac state that is rendered (racst) follows more heuristics. However
this causes a discrepancy where xmobar can show the status is charging
while continue to spawn low battery alerts.
This PR fixes that by using the rendered ac state to decide whether the
alert is sent.
|
|
|
|
Every quantity is now read in its own function and Maybe and
pattern matching is used for dealing with absent files.
On top of that all units should be fixed now.
|
|
|
|
We should make better split os specify code for FreeBSD and Linux.
Idea comes from @liskin.
|