Commit 879b5376 authored by Nico Schottelius's avatar Nico Schottelius

++battery check

parent 61318918
# Nothing to be done if we are charging
if echo "$acpi" | grep -q Charging; then
# exit 0
percent=$(echo $acpi | cut -d, -f2 | sed 's/%//')
if [ $percent -le 10 ]; then
notify-send -u critical "Battery:${percent}%"
elif [ $percent -le 15 ]; then
notify-send -u normal "Battery:${percent}%"
elif [ $percent -le 20 ]; then
notify-send -u low "Battery:${percent}%"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment