mako + eww -> timer: Set notification category to play sound on timer update

This commit is contained in:
GaspardCulis 2024-03-09 11:47:34 +01:00
parent 31b67e7e0c
commit 4c59ef2bdd
2 changed files with 6 additions and 4 deletions

View file

@ -17,7 +17,7 @@
eww update timer-start-time=$(date +%s) eww update timer-start-time=$(date +%s)
echo next echo next
else 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 eww update timer-state=pause
echo first echo first
fi`) ; TODO: Put in a separate script fi`) ; TODO: Put in a separate script
@ -30,7 +30,7 @@
eww update timer-start-time=$(date +%s) eww update timer-start-time=$(date +%s)
echo next echo next
else 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 eww update timer-state=work
echo first echo first
fi`) ; TODO: Put in a separate script fi`) ; TODO: Put in a separate script

View file

@ -8,8 +8,6 @@ font='FiraCode Nerd Font' 11
anchor=bottom-right anchor=bottom-right
outer-margin=0,30,0,0 outer-margin=0,30,0,0
# on-notify=exec mpv ~/.local/share/sfx/gaming-lock.wav
[urgency=low] [urgency=low]
border-color=#cccccc border-color=#cccccc
@ -19,3 +17,7 @@ border-color=#d08770
[urgency=high] [urgency=high]
border-color=#bf616a border-color=#bf616a
default-timeout=0 default-timeout=0
[category=grind-timer]
on-notify=exec mpv ~/.local/share/sfx/uplifting-flute.wav