aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-11-21 16:01:42 +0000
committerMatthew Lemon <matt@matthewlemon.com>2022-11-21 16:01:42 +0000
commit448b5c72d33e8d21dd3b8a9c8880daa1d3fa14d5 (patch)
tree7b606e7d3f4628b37918321ccb13e5f28a2b9810
parentac946c68f8b55d2962d11b301ed4734db8b5bd3f (diff)
added systemd timers for notmuch new
-rw-r--r--ledgerrc1
-rw-r--r--systemd/notmuch.service9
-rw-r--r--systemd/notmuch.timer12
3 files changed, 21 insertions, 1 deletions
diff --git a/ledgerrc b/ledgerrc
index e786808..ca97c3b 100644
--- a/ledgerrc
+++ b/ledgerrc
@@ -1,4 +1,3 @@
--strict
--file ~/Documents/Budget/ledger/2022/ledger_budget/budget.ldg
--start-of-week=1
---pretty
diff --git a/systemd/notmuch.service b/systemd/notmuch.service
new file mode 100644
index 0000000..607c2c7
--- /dev/null
+++ b/systemd/notmuch.service
@@ -0,0 +1,9 @@
+# must be symlinked from ~/.config/systemd/user
+[Unit]
+Description=Use isync to update IMAP account
+
+[Service]
+# User=lemon
+# Group=lemon
+Type=oneshot
+ExecStart=/usr/bin/notmuch new
diff --git a/systemd/notmuch.timer b/systemd/notmuch.timer
new file mode 100644
index 0000000..6bb5de3
--- /dev/null
+++ b/systemd/notmuch.timer
@@ -0,0 +1,12 @@
+# must be symlinked from ~/.config/systemd/user
+[Unit]
+Description=notmuch timer
+
+[Timer]
+# run 5m after boot
+OnBootSec=6m
+# then every hour
+OnUnitActiveSec=1m
+
+[Install]
+WantedBy=timers.target