diff options
author | xengineering <me@xengineering.eu> | 2022-06-05 12:16:55 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-06-05 12:16:55 +0200 |
commit | aa4d546f9293cfce10ceb13642abb40ab6265cdc (patch) | |
tree | 2f63f5e951c3acbd4e59ca89d54f0fbaa679d232 | |
parent | 68ca393862c6b6737ab9d1eddf9ae5e5a80ef88b (diff) | |
download | dotfiles-aa4d546f9293cfce10ceb13642abb40ab6265cdc.tar dotfiles-aa4d546f9293cfce10ceb13642abb40ab6265cdc.tar.zst dotfiles-aa4d546f9293cfce10ceb13642abb40ab6265cdc.zip |
Add systemd user units for RSS URL sync
-rw-r--r-- | .config/systemd/user/rss.service | 9 | ||||
-rw-r--r-- | .config/systemd/user/rss.timer | 9 |
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 |