mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-20 00:37:44 +02:00
Compare commits
No commits in common. "1d0a626a7ee0e1de16b83c8c3b5233ab2715a149" and "42050220b5adee48aa324d0c8892a075a9201400" have entirely different histories.
1d0a626a7e
...
42050220b5
@ -5,6 +5,6 @@ status=$(cat /sys/class/power_supply/"$1"/status)
|
||||
|
||||
[ -z $warn ] && warn=" "
|
||||
|
||||
[ "$status" = "Charging" ]
|
||||
[ "$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/$/%/' ) "
|
||||
|
Loading…
x
Reference in New Issue
Block a user