From c1a7aaa91e459bf36bb1efa36b8459e91f7fa400 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 19 Feb 2024 15:41:49 +0100 Subject: [PATCH] eww -> timer: Added sound on notification --- bar/eww/timer/widget.yuck | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bar/eww/timer/widget.yuck b/bar/eww/timer/widget.yuck index 74625a3..5d247d0 100644 --- a/bar/eww/timer/widget.yuck +++ b/bar/eww/timer/widget.yuck @@ -27,9 +27,11 @@ :initial "first" :run-while {timer-state == "pause"} `if [ "$(eww get timer-pause-period)" == "first" ]; then + mpv ~/.local/share/sfx/uplifting-flute.wav & eww update timer-start-time=$(date +%s) echo next else + mpv ~/.local/share/sfx/uplifting-flute.wav & notify-send -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go." eww update timer-state=work echo first