batpercd.sh

This commit is contained in:
wt
2024-08-02 21:40:17 +07:00
parent 2e90480144
commit 9e75595461
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
while true; do
BAT=$(acpi -S | cut -d' ' -f4 | sed 's/.$//')
if [ $BAT -le 9 ]; then
notify-send "Низкий заряд батареи!!!" -u critical
sleep 60s
fi
sleep 5s
done &