aboutsummaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--systemd/user/random-wallpaper.service6
-rw-r--r--systemd/user/swaybg.service9
2 files changed, 6 insertions, 9 deletions
diff --git a/systemd/user/random-wallpaper.service b/systemd/user/random-wallpaper.service
index e552232..f647034 100644
--- a/systemd/user/random-wallpaper.service
+++ b/systemd/user/random-wallpaper.service
@@ -1,2 +1,8 @@
+[Unit]
+Description=Set random wallpaper
+After=graphical-session.target
+
[Service]
+Type=oneshot
ExecStart=%h/.config/scripts/set_random %h/Pictures/Backgrounds/
+KillMode=process
diff --git a/systemd/user/swaybg.service b/systemd/user/swaybg.service
deleted file mode 100644
index b298cac..0000000
--- a/systemd/user/swaybg.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-PartOf=graphical-session.target
-After=graphical-session.target
-Requisite=graphical-session.target
-
-[Service]
-EnvironmentFile=%h/.config/scripts/IMG.env
-ExecStart=/usr/bin/swaybg -m fill -i "$IMG"
-Restart=always