From d21d1f1be3f3f52d05e395c5d482876cad16c235 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 31 Mar 2020 18:53:43 -0400 Subject: [PATCH] break to avoid % on desktops --- .local/bin/statusbar/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index 82e8450..395ad8d 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -16,7 +16,7 @@ esac for battery in /sys/class/power_supply/BAT? do # Get its remaining capacity and charge status. - capacity=$(cat "$battery"/capacity) + capacity=$(cat "$battery"/capacity) || break status=$(sed "s/Discharging/🔋/;s/Not charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/" "$battery"/status) # If it is discharging and 25% or less, we will add a ❗ as a warning.