20250105.1736079067

This commit is contained in:
fz0x1 2025-01-05 13:11:07 +01:00
parent 0412ac3626
commit 8b0fe5cfc1
6 changed files with 57 additions and 15 deletions

View file

@ -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\""

View file

@ -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

View file

@ -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)

View file

@ -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"),
]

View file

@ -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

View file

@ -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