summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-16 11:46:23 -0500
committerCraig Jennings <c@cjennings.net>2024-04-16 11:46:23 -0500
commit3f301217a34bcaaa7b7a59e7b005e3fe4299c5ea (patch)
tree1aa837b09c4b440aea723363450771e56b623157 /modules
parent9be106724adf3d3ff71e38dd7ddb60238644f0bb (diff)
added alerting for agenda events
Diffstat (limited to 'modules')
-rw-r--r--modules/org-agenda-config.el24
1 files changed, 23 insertions, 1 deletions
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-<f8>") #'cj/todo-list-from-this-buffer)
+ (global-set-key (kbd "M-<f8>") #'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