From 264f54e94a73578c1bb8163b5256737c74aa5171 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Tue, 12 Dec 2023 22:35:22 +0100 Subject: [PATCH 1/2] added dropdown for org agenda --- qtile/.config/qtile/Groups.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qtile/.config/qtile/Groups.py b/qtile/.config/qtile/Groups.py index 0ca00c9..efd065d 100644 --- a/qtile/.config/qtile/Groups.py +++ b/qtile/.config/qtile/Groups.py @@ -115,13 +115,14 @@ groups.append( match = Match(wm_class='telegram-desktop') ), DropDown( - 'Calendar', - 'surf https://cloud.ploedige.com/apps/calendar/dayGridMonth/now', + 'Org Agenda (Calendar)', + 'emacsclient -c -e \'(org-agenda-list)\'', height = 0.5, width = 0.8, x = 0.1, on_focus_lost_hide=True, opacity=1, + match = Match(wm_class='emacs') ) ]) ) @@ -160,6 +161,6 @@ keys.extend([ desc="open the dropdown for Qalculate!"), Key(['mod1','control'],'d',lazy.group['scratchpad'].dropdown_toggle('Deepl'), desc="open the dropdown for Deepl"), - Key(['mod1','control'],'k',lazy.group['scratchpad'].dropdown_toggle('Calendar'), - desc="open the dropdown for Nextcloud Calendar") + Key(['mod1','control'],'k',lazy.group['scratchpad'].dropdown_toggle('Org Agenda (Calendar)'), + desc="open the dropdown for my Org Agenda") ]) From 93f0855a52702b4c6cf4d53d8a4e5fd44ae534f9 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 21:44:39 +0100 Subject: [PATCH 2/2] added todo to caldav sync --- emacs/.config/doom/config.org | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index 4d00452..e82ccaf 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -455,8 +455,9 @@ To get a more nuanced overview of my current TODOs I add more progress states. | Access Key | t | b | i | r | t | | d | | c | | Log Type | time | note | time | note | note | | time | note | note | #+begin_src emacs-lisp :tangle config.el -(setq org-todo-keywords - '((sequence "TODO(t!)" "IN_PROGRESS(i!)" "BLOCKED(b@)" "REVIEW(r@)" "TESTING(t@)" "|" "DONE(d!)" "DELEGATED(!)" "CANCELED(c@)"))) +(after! org + (setq org-todo-keywords + '((sequence "TODO(t!)" "IN_PROGRESS(i!)" "BLOCKED(b@)" "REVIEW(r@)" "TESTING(t@)" "|" "DONE(d!)" "DELEGATED(!)" "CANCELED(c@)")))) #+end_src *** Add "~/org" to Agenda #+begin_src emacs-lisp :tangle config.el @@ -473,22 +474,22 @@ A lot of the config is also taken from [[https://www.reddit.com/r/orgmode/commen #+begin_src emacs-lisp :tangle packages.el (package! org-caldav) #+end_src -*** configure calendars -add the calendars to the org-caldav config -#+begin_src emacs-lisp :tangle config.el -(after! org-caldav - (setq org-caldav-url "https://cloud.ploedige.com/remote.php/dav/calendars/paul-loedige") - (setq org-caldav-calendars - '((:calendar-id "org-test" :files ("~/org/calendars/org_test.org") - :inbox "~/org/calendars/org_test.org")))) -#+end_src -*** enable TODOs +*** Enable TODOs #+begin_src emacs-lisp :tangle config.el (after! org-caldav (setq org-icalendar-include-todo 'all org-caldav-sync-todo t)) #+end_src +*** Configure Sync +add the calendars to the org-caldav config +#+begin_src emacs-lisp :tangle config.el +(after! org-caldav + (setq org-caldav-url "https://cloud.ploedige.com/remote.php/dav/calendars/paul-loedige") + (setq org-caldav-calendars + '((:calendar-id "todo" :files ("~/org/todo.org") + :inbox "~/org/todo.org")))) +#+end_src ** Org Roam *** set base directory Both the org files themselves and the database should be located in the same directory to enable syncing via Nextcloud