Timer alert noise

This commit is contained in:
Curt Spark 2026-02-26 19:19:54 +00:00
parent c3112365fe
commit 9d4b1dc6f2
1 changed files with 7 additions and 0 deletions

View File

@ -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