battery-notify

battery level notifier
git clone git://git.pyratebeard.net/battery-notify.git
Log | Files | Refs | README

commit b97744f7df6d596cd40e79bf7ea206d34b97933b
parent 16a9ec4e2bcd315fbb5725b39dc17da668a142b6
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 26 Nov 2020 17:46:32 +0000

don't notify low battery if charging

Diffstat:
Mcheck-batt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check-batt b/check-batt @@ -60,7 +60,7 @@ if [ "$BATTSTATUS" = Discharging ] && [ "$BATTPERC" -le 10 ]; then exit fi -if [[ $BATTPERC -le 20 ]] ; then +if [ "$BATTPERC" -le 20 ] && [ ! "$BATTSTATUS" = Charging ] ; then NOTIF_LEVEL=20 notify "critical" "battery $BATTSTATUS is less than 20%" save_status