mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
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.
This commit is contained in:
parent
948bb3be6b
commit
746e79aa30
|
@ -12,7 +12,7 @@
|
|||
#################
|
||||
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE
|
||||
exec-once = systemctl --user start wm-ready.target
|
||||
|
||||
exec-once = sleep 2 && eww open bar0
|
||||
|
|
|
@ -3,9 +3,9 @@ Description="Wallpaper setter"
|
|||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=%h/.local/bin/scripts/gui/setbg
|
||||
Type=oneshot
|
||||
RemainAfterExit=false
|
||||
Environment=WALLPAPER_IMAGE=%h/.local/share/background
|
||||
ExecStart=/usr/bin/swaybg --image $WALLPAPER_IMAGE
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=wm-ready.target
|
||||
|
|
Loading…
Reference in a new issue