1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 00:37:44 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
1d0a626a7e statusbar: removed colors 2023-10-15 05:55:51 +02:00
f2170cda08 statusbar: added colors 2023-10-15 03:36:52 +02:00

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/$/%/' ) "