19 lines
654 B
Desktop File
19 lines
654 B
Desktop File
# 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
|
|
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=mango-session.target
|