batteryobserver.sh: different sleeping time depending on battery level

This commit is contained in:
madmaurice 2015-12-14 22:24:20 +01:00
parent 63ecdece12
commit 6222f1edc6

View file

@ -28,6 +28,12 @@ while true; do
fi
;;
esac
sleep 2m
if [ $level -gt 50 ]; then
sleep 40m
elif [ $level -gt 30 ]; then
sleep 10m
else
sleep 2m
fi
done