summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2016-07-26 03:53:24 +0200
committerjao <jao@gnu.org>2016-07-26 03:53:24 +0200
commitc98752cad2343932d42d2fef2229581f0c266800 (patch)
tree67f5331d7906987cd1ed20da4ce5179afa44f94d
parente9ce98d934861a96f76f673b88fda55f4ceeb900 (diff)
downloadxmobar-c98752cad2343932d42d2fef2229581f0c266800.tar.gz
xmobar-c98752cad2343932d42d2fef2229581f0c266800.tar.bz2
Sensible thresholds for high/low battery power consumption
Fixes #265.
-rw-r--r--news.md2
-rw-r--r--readme.md4
-rw-r--r--src/Plugins/Monitors/Batt.hs4
3 files changed, 6 insertions, 4 deletions
diff --git a/news.md b/news.md
index 1e99da3..9be5617 100644
--- a/news.md
+++ b/news.md
@@ -28,6 +28,8 @@ _Bug fixes_
- `PipeReader` was polling too often (thanks to zlbruce).
- The `MPris` monitor now honours field width and padding optons
(-M, -w, etc.).
+ - `Batt`: sensible thresholds for high/low power consumption (see
+ [issue #265].
[issue #231]: https://github.com/jaor/xmobar/issues/225
diff --git a/readme.md b/readme.md
index 35a574e..93469e2 100644
--- a/readme.md
+++ b/readme.md
@@ -866,8 +866,8 @@ something like:
- `-O`: string for AC "on" status (default: "On")
- `-i`: string for AC "idle" status (default: "On")
- `-o`: string for AC "off" status (default: "Off")
- - `-L`: low power (`watts`) threshold (default: -12)
- - `-H`: high power threshold (default: -10)
+ - `-L`: low power (`watts`) threshold (default: 10)
+ - `-H`: high power threshold (default: 12)
- `-l`: color to display power lower than the `-L` threshold
- `-m`: color to display power lower than the `-H` threshold
- `-h`: color to display power higher than the `-H` threshold
diff --git a/src/Plugins/Monitors/Batt.hs b/src/Plugins/Monitors/Batt.hs
index 2ceac09..81c9aee 100644
--- a/src/Plugins/Monitors/Batt.hs
+++ b/src/Plugins/Monitors/Batt.hs
@@ -51,8 +51,8 @@ defaultOpts = BattOpts
, lowWColor = Nothing
, mediumWColor = Nothing
, highWColor = Nothing
- , lowThreshold = -12
- , highThreshold = -10
+ , lowThreshold = 10
+ , highThreshold = 12
, onlineFile = "AC/online"
, scale = 1e6
, onIconPattern = Nothing