changed eq to le in batnotify script
This commit is contained in:
parent
4a2efd1ecc
commit
5a00bbf2ea
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
while [ true ] ; do
|
while [ true ] ; do
|
||||||
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
|
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||||
if [ $PWRLVL -eq 15 ] ; then
|
if [ $PWRLVL -le 15 ] ; then
|
||||||
exec notify-send "Battery is at 15%!!";
|
exec notify-send "Battery is at 15%!!";
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue