dotfiles/home/.config/systemd/user/wallpaper.service
ItsDrike 746e79aa30
Update wallpaper service
Run swaybg directly, since using setbg script runs it detached, and
while it's possible to just set `RemainAfterExit=true`, this makes
things needlessly annoying and confusing.
2023-01-25 18:39:38 +01:00

12 lines
238 B
Desktop File

[Unit]
Description="Wallpaper setter"
PartOf=graphical-session.target
[Service]
Environment=WALLPAPER_IMAGE=%h/.local/share/background
ExecStart=/usr/bin/swaybg --image $WALLPAPER_IMAGE
Restart=always
[Install]
WantedBy=wm-ready.target