diff --git a/init.el b/init.el index 2df450b..f2d59fd 100644 --- a/init.el +++ b/init.el @@ -225,9 +225,16 @@ (setq org-pomodoro-audio-player "mpv") ) (defun sound-alert (alert) + "Play a sound notification and show message ALERT." (sound-wav-play (expand-file-name (concat user-emacs-directory "elpaca/builds/org-pomodoro/resources/bell.wav"))) (message alert)) +; Org timer set timer alert sound +(defun org-timer-sound-alert () + "Sound notification on org timer finish." + (sound-alert "Timer done!")) +(add-hook 'org-timer-done-hook 'org-timer-sound-alert) + ; System notifications of org agenda items (use-package org-alert :ensure t