feat: adjust org-pomodoro hook to work with swaync

This commit is contained in:
2025-07-02 10:58:58 +03:00
parent 89b3ab17d9
commit 0dcfc7ed09

View File

@@ -484,10 +484,14 @@
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
(defun disable-dunst-notifs ()
(call-process-shell-command "dunstctl set-paused true"))
(call-process-shell-command "dunstctl set-paused true")
(call-process-shell-command "swaync-client -dn")
)
(defun enable-dunst-notifs ()
(call-process-shell-command "dunstctl set-paused false"))
(call-process-shell-command "dunstctl set-paused false")
(call-process-shell-command "swaync-client -df")
)
(add-hook 'org-pomodoro-started-hook #'disable-dunst-notifs)
(add-hook 'org-pomodoro-finished-hook #'enable-dunst-notifs)