summaryrefslogtreecommitdiffstats
path: root/hyprpaper.service
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hyprpaper.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/hyprpaper.service b/hyprpaper.service
new file mode 100644
index 0000000..2d85a72
--- /dev/null
+++ b/hyprpaper.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Hyprpaper wallpaper utility for Hyprland
+Documentation=man:hyprpaper(1)
+# order startup after WM
+After=graphical-session.target
+
+[Service]
+Type=exec
+# Repurpose XDG Autostart filtering
+ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "Hyprland" ""
+ExecStart=hyprpaper
+Restart=on-failure
+Slice=background-graphical.slice
+
+[Install]
+WantedBy=graphical-session.target
+# Alternatively can be wanted by specific WMs' targets
+# Should also be duplicated in 'After=' to avoid ordering loop
+#WantedBy=wayland-session@hyprland.desktop.target