summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Plugins/Monitors/Batt
AgeCommit message (Collapse)Author
4 dayspass remaining battery percentage to low battery commandLéana 江
6 daysguard low battery alert behind heuristicsLéana 江
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.
2024-03-30Fix zombie processes left by <action> tag and low battery actionUlrik de Muelenaere
This effectively reverts c54d93e and 991a168. While those fix #687 and #688 respectively in the case where the configuration is recompiled, in all other cases they leave zombie processes, since they undo the fix for #181. However, instead of reverting to the deprecated system function, we use the newer spawnCommand and waitForProcess. And like with 991a168, the low battery action now runs in the background to avoid blocking the bar.
2024-02-18battery: spawnCommand instead of system when running actions0.47.4jao
should fix for real #688 this time
2022-04-18Stylistic nits for previous Batt refactoring/fixjao
2022-04-18Split up battery reading functions; fixed unitsPatrick Günther
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.
2022-04-16Fixed unit of battery power consumptionPatrick Günther
2021-10-08try to reorganize modules per osMichal Zielonka
We should make better split os specify code for FreeBSD and Linux. Idea comes from @liskin.