I don't need bigger font for battery alert.

This commit is contained in:
Bartek Stalewski 2023-12-25 18:46:11 +01:00
parent 46b0dc0ebc
commit 58a8129dba

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 size='140%%' background='#770000' foreground='#ffffff'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
[ "$capacity" -le 20 ] && printf "<span background='#770000' foreground='#ffffff'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
done && exit 0