Skip to content

XWayland

X11 apps need the Xwayland binary on the compositor’s PATH. The xwayland build feature is compiled in by default (only the CPU-only minimal build, cargo build --no-default-features, leaves it out and carries no X11 code at all), so every default package carries it. Take on Xwayland’s own ~344 MiB of closure (all but ~12 MiB of it Xwayland’s own) only if you need X apps.

configuration.nix
programs.scoot = {
enable = true;
session.enable = true;
};

There is only one package. scoot carries the xwayland feature with the binary on PATH (Linux). The minimal build is cargo-only (cargo build --no-default-features).

inputs and pkgs need { inputs, pkgs, ... }: at the top of configuration.nix (the Install page’s flake.nix passes inputs down through specialArgs).

The binary is only half: XWayland still starts only when asked, by --xwayland or [xwayland] enabled. Either half alone is loud rather than silent: a minimal build without the feature logs that the build has no XWayland support, and a default build whose PATH lacks the binary logs `Xwayland` must be on PATH with the path it searched. Both then run a Wayland-only session.

On a machine where nothing has made /tmp/.X11-unix yet (a fresh container), scoot creates it, world-writable with the sticky bit, as an X server would.

Field Type Default Reload Meaning
[xwayland] enabled bool false restart only Run an XWayland server inside the session (flag --xwayland ORs with it).
[xwayland] fractional "sharp" / "light" "sharp" live What the X server draws at a fractional output scale: ceil(scale) for sharp X apps at ~4x the buffer memory, or floor(scale) for blurry upscaled ones at ~1/4. Integer scales draw at themselves either way.

X windows map into the layout like any other: they tile in columns, dialogs float, and [[window_rule]] match_app_id matches their WM_CLASS class. They take focus by themselves only when nothing is focused, when they belong to the focused X app, or when scoot started them. The clipboard and primary selection cross between X and Wayland both ways (X apps touch them only while an X window holds the keyboard, and never while locked). Drag-and-drop works in every direction. DISPLAY is exported to spawned children while the server is believed live.

Read the trust model before turning it on: any X client can keylog and read other X clients. This is X11 design, not a scoot bug. Every protocol consequence (focus policy, seals, limits) is in Protocols.