sway
sway copied to clipboard
Be able to specify Wayland socket name
To aid predictability of WAYLAND_DISPLAY, for when it needs to be specified outside of existing Wayland session, especially when multiple sessions might exist.
Taking inspiration from weston:
-Sname, --socket=name
Weston will listen in the Wayland socket called name. Weston
will export WAYLAND_DISPLAY with this value in the environment
for all child processes to allow them to connect to the right
server automatically.
So specifying e.g., --socket=wayland-vt1 would yield WAYLAND_DISPLAY=wayland-vt1.
Would be very useful for some applications with sway's headless mode.
Related: https://github.com/swaywm/sway/pull/8259