summaryrefslogtreecommitdiff
path: root/.config/eww/scripts/battery
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-04 23:01:55 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-04 23:01:55 +0100
commit7b68345ead9a3f5030a5aeb7eeb2d54b9a367191 (patch)
tree4baa41612157e017ba49c1314100e1bf04d57d6c /.config/eww/scripts/battery
parent54a957bf5b27d0d8bc73365b5f3509bff9963bda (diff)
notify: Add the notify script
Diffstat (limited to '.config/eww/scripts/battery')
-rwxr-xr-x.config/eww/scripts/battery5
1 files changed, 3 insertions, 2 deletions
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