From 30708ecc1fdda07344b7672f60104d221b98a91b Mon Sep 17 00:00:00 2001 From: ineanto Date: Mon, 10 Jul 2023 11:32:00 +0200 Subject: [PATCH] fix: battery --- dot_config/i3/scripts/executable_battery2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_config/i3/scripts/executable_battery2 b/dot_config/i3/scripts/executable_battery2 index 260d95b..5fe0d3b 100644 --- a/dot_config/i3/scripts/executable_battery2 +++ b/dot_config/i3/scripts/executable_battery2 @@ -72,6 +72,8 @@ else: battery = B_DISCHARING + " " elif state == "Full": battery = B_FULL + " " + elif state == "Charging": + battery = B_CHARGING + " " elif state == "Unknown": battery = B_UNKNOWN + " " + B_FULL + " " else: @@ -80,5 +82,5 @@ else: display = display.format(color, battery, percentleft) print(display) -if percentleft < 10: +if percentleft < 15 exit(33)