sb-battery icon should also be on red background.
This commit is contained in:
parent
548d3793e2
commit
e8b7209595
1 changed files with 1 additions and 1 deletions
|
@ -14,5 +14,5 @@ for battery in /sys/class/power_supply/BAT?*; do
|
||||||
esac
|
esac
|
||||||
capacity=$(cat "$battery/capacity")
|
capacity=$(cat "$battery/capacity")
|
||||||
# Will make a warn variable if discharging and low
|
# 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
|
done && exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue