summaryrefslogtreecommitdiffstats
path: root/notmuch/.config/systemd/user
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2017-05-03 10:00:31 -0400
committerAmin Bandali <amin@aminb.org>2017-05-03 10:00:31 -0400
commit0b305109b5e5d1996a817bba976ca85a7a7a652a (patch)
treef43c6e5a04b505d46c89b85c6cfd306900d45a51 /notmuch/.config/systemd/user
parent5633cf03627bb22a3ebd0a84c97e408c13509023 (diff)
downloadconfigs-0b305109b5e5d1996a817bba976ca85a7a7a652a.tar.gz
configs-0b305109b5e5d1996a817bba976ca85a7a7a652a.tar.xz
configs-0b305109b5e5d1996a817bba976ca85a7a7a652a.zip
Notmuch and afew configs
Includes systemd user timer for running `notmuch new` every 5 minutes.
Diffstat (limited to 'notmuch/.config/systemd/user')
-rw-r--r--notmuch/.config/systemd/user/notmuch.service8
-rw-r--r--notmuch/.config/systemd/user/notmuch.timer10
2 files changed, 18 insertions, 0 deletions
diff --git a/notmuch/.config/systemd/user/notmuch.service b/notmuch/.config/systemd/user/notmuch.service
new file mode 100644
index 0000000..bcff3a7
--- /dev/null
+++ b/notmuch/.config/systemd/user/notmuch.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=notmuch service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/notmuch new
+StandardOutput=syslog
+StandardError=syslog
diff --git a/notmuch/.config/systemd/user/notmuch.timer b/notmuch/.config/systemd/user/notmuch.timer
new file mode 100644
index 0000000..dc54f4c
--- /dev/null
+++ b/notmuch/.config/systemd/user/notmuch.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=notmuch timer
+
+[Timer]
+OnCalendar=*:0/5
+Persistent=true
+Unit=notmuch.service
+
+[Install]
+WantedBy=timers.target