From 6a32e643fe91830d194de22d5125b6d4b326a121 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Dec 2023 16:00:08 +0100 Subject: eww: Use the new notify API --- .config/eww/scripts/battery | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.config/eww/scripts/battery') diff --git a/.config/eww/scripts/battery b/.config/eww/scripts/battery index 69019a6..b753bb7 100755 --- a/.config/eww/scripts/battery +++ b/.config/eww/scripts/battery @@ -2,6 +2,9 @@ set -e +export NOTIFY_SHORT=battery +export NOTIFY_LONG=battery + readonly TS_FILE="$XDG_DATA_HOME/battery-notification.timestamp" [ -f "$TS_FILE" ] || touch "$TS_FILE" @@ -17,7 +20,7 @@ then if (set +e; [ $(($now - ${was:-0} > 60)) -eq 1 ]) then - notify battery battery 'Battery Low' \ + notify 'Battery Low' \ 'The current battery level is below 20%. Plug the device into a charger ASAP' \ -u critical echo $now >"$TS_FILE" -- cgit v1.2.3