diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-11-21 16:01:42 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-11-21 16:01:42 +0000 |
commit | 448b5c72d33e8d21dd3b8a9c8880daa1d3fa14d5 (patch) | |
tree | 7b606e7d3f4628b37918321ccb13e5f28a2b9810 | |
parent | ac946c68f8b55d2962d11b301ed4734db8b5bd3f (diff) |
added systemd timers for notmuch new
-rw-r--r-- | ledgerrc | 1 | ||||
-rw-r--r-- | systemd/notmuch.service | 9 | ||||
-rw-r--r-- | systemd/notmuch.timer | 12 |
3 files changed, 21 insertions, 1 deletions
@@ -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 |