From 681f02385ca7c659d41b5387a64844858d55d046 Mon Sep 17 00:00:00 2001 From: fz0x1 Date: Sun, 29 Dec 2024 13:56:05 +0100 Subject: [PATCH] 202412291735476965 --- global/.config/doom/config.el | 8 ++----- global/.config/promnesia/config.py | 22 +++++++++++++++++++ linux/.config/systemd/user/mbsync.service | 9 ++++++++ linux/.config/systemd/user/mbsync.timer | 10 +++++++++ linux/.config/systemd/user/promnesia.service | 9 ++++++++ .../systemd/user/promnesia_index.service | 7 ++++++ .../systemd/user/promnesia_index.timer | 9 ++++++++ 7 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 global/.config/promnesia/config.py create mode 100644 linux/.config/systemd/user/mbsync.service create mode 100644 linux/.config/systemd/user/mbsync.timer create mode 100644 linux/.config/systemd/user/promnesia.service create mode 100644 linux/.config/systemd/user/promnesia_index.service create mode 100644 linux/.config/systemd/user/promnesia_index.timer diff --git a/global/.config/doom/config.el b/global/.config/doom/config.el index 50f7ba8..c0cf7ff 100644 --- a/global/.config/doom/config.el +++ b/global/.config/doom/config.el @@ -294,6 +294,7 @@ PRIORITY may be one of the characters ?A, ?B, or ?C." (setq org-agenda-skip-deadline-if-done t) (setq org-agenda-skip-timestamp-if-done t) +(setq org-agenda-tag-filter-preset '("-movies" "-book")) (setq org-agenda-custom-commands '( @@ -334,8 +335,7 @@ PRIORITY may be one of the characters ?A, ?B, or ?C." (org-agenda-remove-tags t) (org-agenda-span 7) (org-agenda-skip-function - '(org-agenda-skip-entry-if 'todo 'done) - '(org-agenda-skip-entry-if 'regexp ":inbox:")) + '(org-agenda-skip-entry-if 'todo 'done)) ) ) @@ -346,10 +346,6 @@ PRIORITY may be one of the characters ?A, ?B, or ?C." (org-agenda-prefix-format " %t %s") (org-agenda-overriding-header "CURRENT STATUS") - (org-agenda-skip-function - '(org-agenda-skip-entry-if 'regexp ":inbox:")) - - ;; Define the super agenda groups (sorts by order) (org-super-agenda-groups '( diff --git a/global/.config/promnesia/config.py b/global/.config/promnesia/config.py new file mode 100644 index 0000000..53f9442 --- /dev/null +++ b/global/.config/promnesia/config.py @@ -0,0 +1,22 @@ +from promnesia.common import Source +from promnesia.sources import auto + +""" +List of sources to use. + +You can specify your own, add more sources, etc. +See https://github.com/karlicoss/promnesia#setup for more information +""" +SOURCES = [ + # Source( + # auto.index, + # # just some arbitrary directory with plaintext files + # '/usr/share/vim/', + # ) + Source( + auto.index, + "/home/fz0x1/org/braindump/", + name="pkm", + ignored=["*.html", "*.gpg"], + ), +] diff --git a/linux/.config/systemd/user/mbsync.service b/linux/.config/systemd/user/mbsync.service new file mode 100644 index 0000000..03beacf --- /dev/null +++ b/linux/.config/systemd/user/mbsync.service @@ -0,0 +1,9 @@ +[Unit] +Description=Mailbox synchronization service + +[Service] +Type=oneshot +ExecStart=/usr/bin/mbsync -Va + +[Install] +WantedBy=default.target diff --git a/linux/.config/systemd/user/mbsync.timer b/linux/.config/systemd/user/mbsync.timer new file mode 100644 index 0000000..82ebb83 --- /dev/null +++ b/linux/.config/systemd/user/mbsync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Mailbox synchronization timer + +[Timer] +OnBootSec=2m +OnUnitActiveSec=5m +Unit=mbsync.service + +[Install] +WantedBy=timers.target diff --git a/linux/.config/systemd/user/promnesia.service b/linux/.config/systemd/user/promnesia.service new file mode 100644 index 0000000..bef5cf1 --- /dev/null +++ b/linux/.config/systemd/user/promnesia.service @@ -0,0 +1,9 @@ +[Unit] +Description=promnesia server + +[Service] +ExecStart=/home/fz0x1/.local/share/pipx/venvs/promnesia/bin/promnesia serve +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/linux/.config/systemd/user/promnesia_index.service b/linux/.config/systemd/user/promnesia_index.service new file mode 100644 index 0000000..f7ed2c2 --- /dev/null +++ b/linux/.config/systemd/user/promnesia_index.service @@ -0,0 +1,7 @@ +[Unit] +Description=index promnesia + +[Service] +ExecStart=/home/fz0x1/.local/share/pipx/venvs/promnesia/bin/promnesia index +StandardOutput=append:/tmp/promnesia-index.log +StandardError=append:/tmp/promnesia-index.err diff --git a/linux/.config/systemd/user/promnesia_index.timer b/linux/.config/systemd/user/promnesia_index.timer new file mode 100644 index 0000000..d23efd8 --- /dev/null +++ b/linux/.config/systemd/user/promnesia_index.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Таймер для Promnesia Index + +[Timer] +OnUnitActiveSec=60min + +[Install] +WantedBy=timers.target +