batpercd.sh
This commit is contained in:
1 parent
2e90480144
commit
9e75595461
1 file changed
+11
@@ -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 &
|
||||||
Reference in new issue
Block a user