✨ Updated scripts
This commit is contained in:
parent
eef4fdf99c
commit
d0aead5a9c
14 changed files with 386 additions and 99 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue