summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-06-04 21:33:23 +0200
committerxengineering <me@xengineering.eu>2022-06-04 21:34:08 +0200
commitfb347028b583335e0d0acab260919e201af333dc (patch)
tree67b480afd1f1264051bd329420f99441bc89f710
parentac75a5e44100274b39d7ced5b7e7ecae6a99bc24 (diff)
downloaddotfiles-fb347028b583335e0d0acab260919e201af333dc.tar
dotfiles-fb347028b583335e0d0acab260919e201af333dc.tar.zst
dotfiles-fb347028b583335e0d0acab260919e201af333dc.zip
Add systemd user services for vdirsyncer
-rw-r--r--.config/systemd/user/vdirsyncer.service9
-rw-r--r--.config/systemd/user/vdirsyncer.timer8
2 files changed, 17 insertions, 0 deletions
diff --git a/.config/systemd/user/vdirsyncer.service b/.config/systemd/user/vdirsyncer.service
new file mode 100644
index 0000000..2f4fa3d
--- /dev/null
+++ b/.config/systemd/user/vdirsyncer.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Synchronize my contact and calendar files
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/vdirsyncer sync
+
+[Install]
+WantedBy=multi-user.target
diff --git a/.config/systemd/user/vdirsyncer.timer b/.config/systemd/user/vdirsyncer.timer
new file mode 100644
index 0000000..87c4338
--- /dev/null
+++ b/.config/systemd/user/vdirsyncer.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Synchronize my calendar and contact files automatically
+
+[Timer]
+OnUnitInactiveSec=60
+
+[Install]
+WantedBy=timers.target