From 6ed6b5825e655c4b855fc14e3e0468c8969be9a1 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 29 Apr 2018 12:37:36 -0700 Subject: 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. --- .config/i3status/config | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- cgit v1.2.3