summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-29 12:37:36 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-04-29 12:38:00 -0700
commit6ed6b5825e655c4b855fc14e3e0468c8969be9a1 (patch)
tree9008ad114cb6a66ef6129f76eb8f9e48da197ab1
parent6b094bb8cbd34f450078042eab54b4485b3c358b (diff)
downloaddotfiles-6ed6b5825e655c4b855fc14e3e0468c8969be9a1.tar.gz
i3status: show battery in red when drops to 25%
At that point it should be plugged in to prolong its life. Also, using the percentage threshold type, rather than the time threshold type, prevents spurious red just in the middle of a short build.
-rw-r--r--.config/i3status/config5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/i3status/config b/.config/i3status/config
index aefe69ef..91fa2866 100644
--- a/.config/i3status/config
+++ b/.config/i3status/config
@@ -35,6 +35,11 @@ battery all {
last_full_capacity = true
hide_seconds = true
integer_battery_capacity = true
+ # the life of a Li-ion battery is best preserved by cycling it
+ # from around 80% down to 25%, and back
+ # http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
+ low_threshold = 25
+ threshold_type = percentage
}
tztime local {