From 7b68345ead9a3f5030a5aeb7eeb2d54b9a367191 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 4 Nov 2023 23:01:55 +0100 Subject: notify: Add the notify script --- .config/eww/scripts/battery | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/eww/scripts/battery') diff --git a/.config/eww/scripts/battery b/.config/eww/scripts/battery index 600dfb3..69019a6 100755 --- a/.config/eww/scripts/battery +++ b/.config/eww/scripts/battery @@ -17,8 +17,9 @@ then if (set +e; [ $(($now - ${was:-0} > 60)) -eq 1 ]) then - notify-send -a 'battery' -u critical 'Battery Low' \ - 'The current battery level is below 20%. Plug the device into a charger ASAP.' + notify battery battery 'Battery Low' \ + 'The current battery level is below 20%. Plug the device into a charger ASAP' \ + -u critical echo $now >"$TS_FILE" fi fi -- cgit v1.2.3