summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/systemd/user/rss.service9
-rw-r--r--.config/systemd/user/rss.timer9
2 files changed, 18 insertions, 0 deletions
diff --git a/.config/systemd/user/rss.service b/.config/systemd/user/rss.service
new file mode 100644
index 0000000..8e93d30
--- /dev/null
+++ b/.config/systemd/user/rss.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Synchronize my newsboat URL file
+
+[Service]
+Type=oneshot
+ExecStart=sh -c "rsync -av cloud:~/.config/newsboat/urls ~/.config/newsboat/urls"
+
+[Install]
+WantedBy=multi-user.target
diff --git a/.config/systemd/user/rss.timer b/.config/systemd/user/rss.timer
new file mode 100644
index 0000000..c76ab28
--- /dev/null
+++ b/.config/systemd/user/rss.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Synchronize my newsboat URL file automatically
+
+[Timer]
+OnActiveSec=0
+OnUnitInactiveSec=5 min
+
+[Install]
+WantedBy=timers.target