sb-battery icon should also be on red background.
This commit is contained in:
parent
548d3793e2
commit
e8b7209595
@ -14,5 +14,5 @@ for battery in /sys/class/power_supply/BAT?*; do
|
||||
esac
|
||||
capacity=$(cat "$battery/capacity")
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$capacity" -le 20 ] && printf "$icon <span foreground='#ffffff' background='#770000'>${status} ${capacity}%%</span>" || printf "$icon ${status} ${capacity}%%"
|
||||
[ "$capacity" -le 20 ] && printf "<span foreground='#ffffff' background='#770000'>$icon ${status} ${capacity}%%</span>" || printf "$icon ${status} ${capacity}%%"
|
||||
done && exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user