Explorar el Código

~/.bin/warn-if-low.sh: Report battery level.

Lucas Stadler %!s(int64=13) %!d(string=hace) años
padre
commit
636f93fca6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      .bin/warn-if-low.sh

+ 1 - 0
.bin/warn-if-low.sh

9
9
10
online=`cat $charge_path/AC/online`
10
online=`cat $charge_path/AC/online`
11
11
12
echo "Battery is charged $charge_rate%"
12
if [ "$online" = "0" -a $charge_rate -lt 5 ]; then
13
if [ "$online" = "0" -a $charge_rate -lt 5 ]; then
13
	DISPLAY=:0 zenity --error --text "Whoopey: You're low on energy (only $charge_rate% left)!"
14
	DISPLAY=:0 zenity --error --text "Whoopey: You're low on energy (only $charge_rate% left)!"
14
fi
15
fi