summaryrefslogtreecommitdiff
path: root/.config/systemd/user/wallpaper-continuous.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/wallpaper-continuous.service')
-rw-r--r--.config/systemd/user/wallpaper-continuous.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/systemd/user/wallpaper-continuous.service b/.config/systemd/user/wallpaper-continuous.service
new file mode 100644
index 0000000..bc8a33b
--- /dev/null
+++ b/.config/systemd/user/wallpaper-continuous.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Change the wallpaper periodically
+
+[Service]
+Environment=DISPLAY=:0
+
+ExecStart=/usr/bin/sh -lc wallpaper-continuous.sh
+
+Restart=always
+# Restart service after 10 seconds if service crashes
+RestartSec=10
+SyslogIdentifier=wallpaper-continuous
+
+[Install]
+WantedBy=basic.target