Migration to ayu.
This commit is contained in:
parent
b6e7de0e5d
commit
62c4507e7e
8 changed files with 68 additions and 42 deletions
|
@ -13,5 +13,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 "<span foreground='#ffffff' background='#770000'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
|
||||
[ "$capacity" -le 20 ] && printf "<span foreground='#000000' background='#ff3333'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
|
||||
done && exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue