1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

statusbar: removed colors

This commit is contained in:
2023-10-15 05:55:51 +02:00
parent f2170cda08
commit 1d0a626a7e
3 changed files with 6 additions and 6 deletions

View File

@@ -5,6 +5,6 @@ status=$(cat /sys/class/power_supply/"$1"/status)
[ -z $warn ] && warn=" "
[ "$status" = "Charging" ] && color="#ffffff"
[ "$status" = "Charging" ]
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/$/%/' ) "