create mango-session.target

This commit is contained in:
Ray Elliott 2026-03-04 19:58:39 +00:00
commit e7b71de3d8
14 changed files with 137 additions and 8 deletions

View file

@ -1,14 +1,18 @@
# swww is attached to mango-session.target instead of default.target so it
# starts only after Wayland session environment has been imported into
# systemd --user by mango startup.
[Unit]
Description=swww wallpaper daemon
After=default.target
PartOf=default.target
PartOf=mango-session.target
[Service]
Type=simple
# Keep a small readiness gate to avoid connecting before the compositor socket
# exists. With the target-based startup this should pass immediately.
ExecStartPre=/usr/bin/sh -c 'until [ -n "$WAYLAND_DISPLAY" ] && [ -S "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; do sleep 0.2; done'
ExecStart=/usr/bin/swww-daemon
Restart=on-failure
RestartSec=1
[Install]
WantedBy=default.target
WantedBy=mango-session.target