From 6491129dbb654e248df75f289ccf37a82cfab1f2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 12 Apr 2020 23:49:42 -0400 Subject: [PATCH] bat script changes for better statusbar --- .local/bin/statusbar/battery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index 65152f7..981fc3a 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -22,6 +22,6 @@ do # If it is discharging and 25% or less, we will add a ❗ as a warning. [ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗" - printf "%s%s%s%%\n" "$status" "$warn" "$capacity" + printf "%s%s%s%% " "$status" "$warn" "$capacity" unset warn -done +done | sed s/\ $/\\n/