Fixed batteries script notifying for critically low battery charge
This commit is contained in:
@ -51,7 +51,7 @@ for battery in $batteries; do
|
||||
text+="<span foreground=\"${COLOR}\">${BATTEXT}</span> "
|
||||
|
||||
[ "$STAT" = "Charging" ] && ischarging=1
|
||||
[ "$BAT" -gt 10 ] hasenough=1
|
||||
[ "$BAT" -gt 10 ] && hasenough=1
|
||||
done
|
||||
printf "${text:0:-1}\n\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user