From 343ad4cf41aa73b4f0e074b01cdd3bd10bf0bf7b Mon Sep 17 00:00:00 2001 From: TiynGER Date: Thu, 28 May 2020 20:23:33 +0200 Subject: [PATCH] battery module working now --- .local/bin/tools/statusbar/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/tools/statusbar/battery b/.local/bin/tools/statusbar/battery index a928f50..69231de 100755 --- a/.local/bin/tools/statusbar/battery +++ b/.local/bin/tools/statusbar/battery @@ -11,4 +11,4 @@ status=$(cat /sys/class/power_supply/"$1"/status) [ "$status" = "Charging" ] && color="#ffffff" -printf "%s%s\n" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/🛑/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " +printf "%s%s" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/🛑/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) "