better dunst toggles + modeline

This commit is contained in:
2024-09-16 09:04:12 +03:00
parent df033dd41f
commit 069caf000b

View File

@@ -418,7 +418,14 @@ awqat-times-for-day)
;;org latex moment ;;org latex moment
(setq-default org-latex-toc-command "\\clearpage \\tableofcontents \\clearpage") (setq-default org-latex-toc-command "\\clearpage \\tableofcontents \\clearpage")
(add-hook 'doc-view-mode-hook 'auto-revert-mode) (add-hook 'doc-view-mode-hook 'auto-revert-mode)
(defun toggle-dunst-notifs ()
(call-process-shell-command "dunstctl set-paused toggle")) (defun disable-dunst-notifs ()
(add-hook 'org-pomodoro-started-hook #'toggle-dunst-notifs) (call-process-shell-command "dunstctl set-paused true"))
(add-hook 'org-pomodoro-finished-hook #'toggle-dunst-notifs)
(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)