The Unclear Impact

protipp for developing applications that open a window with auto-reload (e.g., electron apps) on tiling sway: to pevent the window layout from jumping around when the application closes and reopens, run another instance of sway as a nested session with a minimal config file blobfoxcomfycomputer

I point electron the xwayland of the nested sway with DISPLAY=:1 so all my window stay in place around the nested sway window. I guess the same would work with WAYLAND_DISPLAY, but chromium seems to crash for me on wayland ozone for the moment

sway -c ~/.config/sway/config_nested &>/dev/null & DISPLAY=:1 yarn watch; kill %1
replies
0
announces
0
likes
0