From f1f94b6df4e76be460f19ac0c6b6357e5cde5984 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 25 Jul 2022 18:43:35 -0400 Subject: [PATCH] Systemd Unit for wallpaper.pl --- sway/wallpapers.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sway/wallpapers.service diff --git a/sway/wallpapers.service b/sway/wallpapers.service new file mode 100644 index 0000000..734272a --- /dev/null +++ b/sway/wallpapers.service @@ -0,0 +1,12 @@ +[Unit] +Description=Rotate through cropped wallpapers for %u + +[Service] +Type=forking +PIDFile=/tmp/%u-wallpaper.pid +WorkingDirectory=/tmp +ExecStart=/var/home/%u/scripts/sway/wallpaper.pl -d --path=/home/jpm/wallpapers +Restart=always + +[Install] +WantedBy=graphical.target