Explorar el Código

Fix hibernate conditional

Andrew Swistak hace 11 años
padre
commit
fecfedf80a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/auto_hibernate.sh

+ 1 - 1
bin/auto_hibernate.sh

@@ -2,7 +2,7 @@
 
 stat=$(cat /sys/class/power_supply/BAT0/status)
 batperc=$(cat /sys/class/power_supply/BAT0/capacity)
-if [[ $stat -eq "Discharging" ]]; then
+if [[ $stat = "Discharging" ]]; then
   if [ $batperc -le 8 ]; then
     notify-send 'HEY! Your battery is low!' 'Save your work!!' -i battery-low -t 20000
   fi