From 4c59ef2bddd971ec6acecec0e862c9939c0ec9d5 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Sat, 9 Mar 2024 11:47:34 +0100 Subject: [PATCH] mako + eww -> timer: Set notification category to play sound on timer update --- bar/eww/timer/widget.yuck | 4 ++-- misc/mako/config | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bar/eww/timer/widget.yuck b/bar/eww/timer/widget.yuck index 74625a3..0ea2e8b 100644 --- a/bar/eww/timer/widget.yuck +++ b/bar/eww/timer/widget.yuck @@ -17,7 +17,7 @@ eww update timer-start-time=$(date +%s) echo next else - notify-send -i ~/Images/Icons/moai.jpg "Work period over" "You can take a little nap now." + notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Work period over" "You can take a little nap now." eww update timer-state=pause echo first fi`) ; TODO: Put in a separate script @@ -30,7 +30,7 @@ eww update timer-start-time=$(date +%s) echo next else - notify-send -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go." + notify-send -c grind-timer -i ~/Images/Icons/moai.jpg "Pause period over" "Back to grinding we go." eww update timer-state=work echo first fi`) ; TODO: Put in a separate script diff --git a/misc/mako/config b/misc/mako/config index d17fd7f..028a939 100644 --- a/misc/mako/config +++ b/misc/mako/config @@ -8,8 +8,6 @@ font='FiraCode Nerd Font' 11 anchor=bottom-right outer-margin=0,30,0,0 -# on-notify=exec mpv ~/.local/share/sfx/gaming-lock.wav - [urgency=low] border-color=#cccccc @@ -19,3 +17,7 @@ border-color=#d08770 [urgency=high] border-color=#bf616a default-timeout=0 + +[category=grind-timer] +on-notify=exec mpv ~/.local/share/sfx/uplifting-flute.wav +