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