summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2016-08-11 18:22:13 +0200
committerjao <jao@gnu.org>2016-08-11 18:22:13 +0200
commit90cc2c33676efa0fb0936ec63868cf6168889f3e (patch)
treea5e3b9287859689a99d0e662e7ec78a1e82d1c41
parent75b954d8556efc18a9b829bb1c3246c59f15eab7 (diff)
downloadxmobar-90cc2c33676efa0fb0936ec63868cf6168889f3e.tar.gz
xmobar-90cc2c33676efa0fb0936ec63868cf6168889f3e.tar.bz2
Battery: report Full instead of Idle when the battery looks full
-rw-r--r--src/Plugins/Monitors/Batt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugins/Monitors/Batt.hs b/src/Plugins/Monitors/Batt.hs
index 38c325f..5dc305f 100644
--- a/src/Plugins/Monitors/Batt.hs
+++ b/src/Plugins/Monitors/Batt.hs
@@ -189,7 +189,7 @@ readBatteries opts bfs =
acst = mostCommonDef Unknown $ filter (Unknown/=) statuses
racst | acst /= Unknown = acst
| not ac = Discharging
- | left == 0 = Idle
+ | left == 0 = Full
| otherwise = Charging
return $ if isNaN left then NA else Result left watts time racst