feat: adjust org-pomodoro hook to work with swaync
This commit is contained in:
@@ -484,10 +484,14 @@
|
|||||||
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
|
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
|
||||||
|
|
||||||
(defun disable-dunst-notifs ()
|
(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 ()
|
(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-started-hook #'disable-dunst-notifs)
|
||||||
(add-hook 'org-pomodoro-finished-hook #'enable-dunst-notifs)
|
(add-hook 'org-pomodoro-finished-hook #'enable-dunst-notifs)
|
||||||
|
|||||||
Reference in New Issue
Block a user