better dunst toggles + modeline
This commit is contained in:
@@ -418,7 +418,14 @@ awqat-times-for-day)
|
||||
;;org latex moment
|
||||
(setq-default org-latex-toc-command "\\clearpage \\tableofcontents \\clearpage")
|
||||
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
|
||||
(defun toggle-dunst-notifs ()
|
||||
(call-process-shell-command "dunstctl set-paused toggle"))
|
||||
(add-hook 'org-pomodoro-started-hook #'toggle-dunst-notifs)
|
||||
(add-hook 'org-pomodoro-finished-hook #'toggle-dunst-notifs)
|
||||
|
||||
(defun disable-dunst-notifs ()
|
||||
(call-process-shell-command "dunstctl set-paused true"))
|
||||
|
||||
(defun enable-dunst-notifs ()
|
||||
(call-process-shell-command "dunstctl set-paused false"))
|
||||
|
||||
(add-hook 'org-pomodoro-started-hook #'disable-dunst-notifs)
|
||||
(add-hook 'org-pomodoro-finished-hook #'enable-dunst-notifs)
|
||||
|
||||
(setq-default doom-modeline-buffer-file-name-style 'file-name-with-project)
|
||||
|
||||
Reference in New Issue
Block a user