Migration to ayu.

This commit is contained in:
Bartek Stalewski 2022-10-30 13:53:34 +01:00
parent b6e7de0e5d
commit 62c4507e7e
8 changed files with 68 additions and 42 deletions

View file

@ -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