Updated scripts

This commit is contained in:
z3rOR0ne 2022-07-07 13:05:06 -07:00
parent eef4fdf99c
commit d0aead5a9c
14 changed files with 386 additions and 99 deletions

View file

@ -1,11 +1,11 @@
#!/bin/bash
#!/bin/sh
while [ true ] ; do
while true ; do
PWRLVL=$(cat /sys/class/power_supply/BAT1/capacity)
if [ $PWRLVL -le 15 ] ; then
exec notify-send "Battery is at 15%!!";
break;
if [ "$PWRLVL" -le 15 ] ; then
notify-send "Battery is at 15%!!";
sleep 300s;
else
sleep 15s;
sleep 60s;
fi
done