Open a nested display
display_openStarts a visible nested Sway compositor and optionally launches an app inside; the server routes input and screenshots so host desktop focus is never required.
Instructions
Starts a nested sway compositor (visible window on the host desktop, with its own Xwayland) and optionally launches an app inside it. Input and screenshots are routed by this server, so no host focus is ever required. Returns the display id and its inner WAYLAND_DISPLAY/DISPLAY values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Explicit display id (default d1, d2, ...) | |
| app | No | Executable to launch inside the display | |
| cwd | No | ||
| env | No | Extra environment variables for app | |
| args | No | Arguments for app | |
| title | No | Title shown on the host window | |
| width | No | ||
| height | No | ||
| backend | No | How the nested compositor attaches to the host. 'x11' (default when the host has a DISPLAY) gives a Mutter-decorated window that can be moved and retitled; 'wayland' avoids XWayland on the host. | |
| position | No | Host window position (backend 'x11' only) |