Files
dotfiles/bin/batpercd
T
2024-07-14 19:33:40 +07:00

16 lines
244 B
Bash
Executable File

#!/bin/sh
batperc=$(~/dotfiles/bin/batperc -j)
echo $batperc
while true; do
for i in $batperc; do
if [[ "$i" -le "20" ]]; then
notify-send "Battery low: $i%" -u critical
sleep 60
fi
done
done