mako + eww -> timer: Set notification category to play sound on timer update
This commit is contained in:
parent
31b67e7e0c
commit
4c59ef2bdd
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue