Browse Source

Fix hibernate conditional

Andrew Swistak 11 năm trước cách đây
mục cha
commit
fecfedf80a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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