|
|
@ -12,8 +12,8 @@ total=$(echo $acpi | sed 's/.*:\ //')
|
|
|
|
status="$(echo $total | cut -d',' -f1)"
|
|
|
|
status="$(echo $total | cut -d',' -f1)"
|
|
|
|
capacity="$(echo $total | cut -d',' -f2 | sed 's/%//')"
|
|
|
|
capacity="$(echo $total | cut -d',' -f2 | sed 's/%//')"
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$status" = "Discharging" ] && [ $capacity -le 15 ] ; then
|
|
|
|
if [ "$status" = "Discharging" ] && [ $capacity -le 20 ] ; then
|
|
|
|
notify-send -u critical "Battery" "Below 15%"
|
|
|
|
notify-send -u critical "Battery" "Low capacity: $capacity%"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ $capacity -gt 40 ]
|
|
|
|
if [ $capacity -gt 40 ]
|
|
|
|