diff --git a/global/.config/doom/config.el b/global/.config/doom/config.el index 31af4dd..7caa168 100644 --- a/global/.config/doom/config.el +++ b/global/.config/doom/config.el @@ -108,6 +108,20 @@ (use-package! anki-editor) + + +;; To open files with .journal extension in hledger-mode +(add-to-list 'auto-mode-alist '("\\.journal\\'" . hledger-mode)) + +;; Provide the path to you journal file. +;; The default location is too opinionated. +(setq hledger-jfile "~/.hledger/2025/all.journal") +(setq hledger-currency-string " ") + +;;; Auto-completion for account names +;; For company-mode users, +;; (add-to-list 'company-backends 'hledger-company) + (use-package! org-roam ;; :ensure nil :custom @@ -131,9 +145,6 @@ (setq org-default-priority ?D) -(setq habitica-uid (getenv "HABITICA_UID")) -(setq habitica-token (getenv "HABITICA_TOKEN")) - (use-package! org-super-links :bind (("C-c s s" . org-super-links-link) ("C-c s l" . org-super-links-store-link) @@ -177,7 +188,7 @@ :empty-lines 0) ("m" "Meeting" - entry (file+olp+datetree "~/org/life.org" "Areas" "Meetings") + entry (file+datetree "~/org/life.org" "Areas" "Meetings") "* TODO [#A] %? :meeting:%^g\nSCHEDULED: %^T\n:PROPERTIES:\n:Created: %T\n:END:\n" :tree-type week :empty-lines 0) @@ -322,18 +333,17 @@ PRIORITY may be one of the characters ?A, ?B, or ?C." (setq org-agenda-custom-commands '( - - ;; Daily Agenda & TODOs ("d" "Daily agenda and all TODOs" - ;; Display items with priority A - ((tags "PRIORITY=\"A\"" + ;; View 7 days in the calendar view + ((agenda "" ((org-agenda-span 7))) + + ;; Display items with priority A + (tags "PRIORITY=\"A\"" ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done)) (org-agenda-overriding-header "High-priority unfinished tasks:"))) - ;; View 7 days in the calendar view - (agenda "" ((org-agenda-span 7))) ;; Display items with priority B (really it is view all items minus A & C) (tags "PRIORITY=\"B\"" diff --git a/global/.config/doom/init.el b/global/.config/doom/init.el index eb82ead..daab6cc 100644 --- a/global/.config/doom/init.el +++ b/global/.config/doom/init.el @@ -23,7 +23,7 @@ ;;layout ; auie,ctsrnm is the superior home row :completion - ;;company ; the ultimate code completion backend + ;; company ; the ultimate code completion backend (corfu +orderless) ; complete with cap(f), cape and a flying feather! ;;helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... @@ -154,7 +154,7 @@ ;;nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - (org +roam2 +pretty) ; organize your plain life in plain text + (org +roam2 +pretty +habits) ; organize your plain life in plain text ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;graphviz ; diagrams for confusing yourself even more diff --git a/global/.config/doom/packages.el b/global/.config/doom/packages.el index a38b024..c6bbf08 100644 --- a/global/.config/doom/packages.el +++ b/global/.config/doom/packages.el @@ -52,6 +52,6 @@ ;; (package! citar-denote) (package! anki-editor :recipe (:host github :repo "anki-editor/anki-editor")) -(package! habitica) (package! org-super-links :recipe (:host github :repo "toshism/org-super-links")) +(package! hledger-mode) diff --git a/global/.config/promnesia/config.py b/global/.config/promnesia/config.py index cd5c487..0da0986 100644 --- a/global/.config/promnesia/config.py +++ b/global/.config/promnesia/config.py @@ -1,5 +1,5 @@ from promnesia.common import Source -from promnesia.sources import auto +from promnesia.sources import auto, shellcmd """ List of sources to use. @@ -31,4 +31,5 @@ SOURCES = [ name="inbox", ignored=["*.html", "*.gpg"], ), + Source(shellcmd.index, "linkding_promnesia.sh", name="linkding"), ] diff --git a/global/scripts/bin/linkding_promnesia.sh b/global/scripts/bin/linkding_promnesia.sh new file mode 100755 index 0000000..3c85c50 --- /dev/null +++ b/global/scripts/bin/linkding_promnesia.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +source "${HOME:?}/scripts/functions.sh" + +tools=("linkding" "jq") +check_tools "$tools" + +NEXT="" +DATA="" +OFFSET=100 +while true; do + if [[ ! -z "$NEXT" ]]; then + echo "$NEXT" + LINKDATA="$(linkding bookmarks all -o "$OFFSET")" + DATA="$DATA $(echo "$LINKDATA" | jq -r ".results[].url")" + NEXT="$(echo "$LINKDATA" | jq ".next")" + if [[ "$NEXT" = "null" ]]; then + break + fi + OFFSET="$((OFFSET + 100))" + else + LINKDATA=$(linkding bookmarks all) + if [[ -z "$LINKDATA" ]]; then + die "There is no data to fetch" + fi + NEXT="$(echo "$LINKDATA" | jq ".next")" + DATA="$(echo "$LINKDATA" | jq -r ".results[].url")" + fi +done + +echo $DATA diff --git a/linux/.config/i3/autostart.sh b/linux/.config/i3/autostart.sh index 8edeb0a..52d66fc 100755 --- a/linux/.config/i3/autostart.sh +++ b/linux/.config/i3/autostart.sh @@ -75,7 +75,7 @@ workrave & ./activitywatch/aw-qt & # watchdog -watchmedo shell-command --pattern='*.org;*.txt;*.md;*.gpg' --recursive --ignore-directories -W --command "~/org/sync.sh" ~/org/ & +watchmedo shell-command --pattern='*.org;*.txt;*.md;*.gpg;*.org_archive;*.sh' --recursive --ignore-directories -W --command "~/org/sync.sh" ~/org/ & # lockscreen # xss-lock --transfer-sleep-lock -- ~/scripts/bin/lock.sh