summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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