From 07cf5d3d95cab88da34764125207b1fb8cdd77a6 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 7 Oct 2024 13:45:05 +0200 Subject: [PATCH] feat(eww -> timer): Re-added user notifications --- bar/eww/scripts/timer | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bar/eww/scripts/timer b/bar/eww/scripts/timer index e0ca61d..d4ff698 100755 --- a/bar/eww/scripts/timer +++ b/bar/eww/scripts/timer @@ -36,6 +36,13 @@ start_timer() { i=$(( i - 1 )) done + # Notify user + if [ "$timer_type" = "pause" ]; then + notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Work period over" "You can take a little nap now." + elif [ "$timer_type" = "work" ]; then + notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go." + fi + start_timer "$timer_type" }