From 3f301217a34bcaaa7b7a59e7b005e3fe4299c5ea Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 16 Apr 2024 11:46:23 -0500 Subject: added alerting for agenda events --- modules/org-agenda-config.el | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/modules/org-agenda-config.el b/modules/org-agenda-config.el index 08af27a1..016fffcc 100644 --- a/modules/org-agenda-config.el +++ b/modules/org-agenda-config.el @@ -250,7 +250,29 @@ files that have project in their filetag." (org-agenda "a" "t")) (message (concat "Your org agenda request based on '" (buffer-name (current-buffer)) "' failed because it's not an org buffer.")))) - (global-set-key (kbd "M-") #'cj/todo-list-from-this-buffer) + (global-set-key (kbd "M-") #'cj/todo-list-from-this-buffer) + + ;; --------------------------- Notifications / Alerts -------------------------- + ;; send libnotify notifications about agenda items + + (use-package alert + :defer .5 + :config + (setq alert-fade-time 10) ;; secs to vanish alert + (setq alert-default-style 'libnotify)) ;; work with dunst + + (use-package org-alert + :defer .5 + :bind + ("C-c A" . org-alert-check) + :config + (setq alert-default-style 'libnotify) ;; work with dunst + (setq org-alert-interval 300) ;; seconds checks agenda is checked (300 = 5 mins) + (setq org-alert-notify-cutoff 5) ;; minutes before a deadline to send alert + (setq org-alert-notify-after-event-cutoff 10) ;; mins post deadline to stop alerts + (setq org-alert-notification-title "Reminder") + (org-alert-enable)) + ) ;; end with-eval-after-load 'org-roam-config ) ;; end with-eval-after-load 'org-roam -- cgit v1.2.3