From 21f02945bbca8d2a68bf939dbf7a720429db361d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 29 Oct 2026 19:16:03 -0700 Subject: [PATCH] Add icon and persistence to notification. --- sunset-alarm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sunset-alarm b/sunset-alarm index be86791..a4ca1c6 100755 --- a/sunset-alarm +++ b/sunset-alarm @@ -97,10 +97,13 @@ show_alert() { TITLE="Sunset Alarm" MESSAGE="Sunset is in ${MINUTES} minute(s)." + persistent="-t 0 --wait" + icon="-i weather-clear" + if command -v fyi >/dev/null 2>&1; then - fyi "$TITLE" "$MESSAGE" + fyi $icon $persistent "$TITLE" "$MESSAGE" elif command -v notify-send >/dev/null 2>&1; then - notify-send "$TITLE" "$MESSAGE" + notify-send $icon $persistent "$TITLE" "$MESSAGE" elif command -v wall >/dev/null 2>&1; then echo "${TITLE}: ${MESSAGE}" | wall else