scrotwmos
SWM-WL(1) General Commands Manual SWM-WL(1)

swm-wl — scrotwmos Wayland compositor

swm-wl [-f file] [-s command]

swm-wl is the scrotwmos window manager as a Wayland compositor. It tiles like spectrwm, and it can run each workspace's programs in a session of its own: a container or a virtual machine. scrotwmos.conf(5) describes the configuration, the sessions, and the key bindings.

The options are as follows:

file
Read file instead of ~/.scrotwmos.conf, /etc/scrotwmos.conf, and ~/.scrotwmos-wayland.conf.
command
Accepted and ignored.

swm-wl runs nested in a Wayland or X11 session, or on the console from a virtual terminal. On the console, it needs a seat: a seat manager, such as seatd(1) or logind, hands it the screen and the input devices. swm-wl refuses plain root.

Container sessions need the root monitor, which builds them and drops what it does not need. Without it, a container session does not start. Without it, a VM session's VMM runs as the invoking user, which the appliance refuses. Start swm-wl with sudo -E for the root monitor. The compositor itself drops back to the invoking user before it opens the seat. The root monitor needs Linux 6.16 or newer. It is also a seat manager, at /run/scrotwmos/seat.sock. See SEATD_SOCK.

The configuration must name a session_default. The value host runs programs as plain host processes.

On the appliance, swm-wl is the first process and its own seat manager. It reads /etc/scrotwmos/dom0.conf.

Where the Wayland socket goes. It must be set. A short path is best.
Where the diagnostics go once the console turns graphical, if the standard error is the terminal. The default is $XDG_RUNTIME_DIR/swm-wl.log.
Where ~/.scrotwmos.conf and ~/.scrotwmos-wayland.conf are found. Under sudo, it should stay the invoking user's.
, SUDO_GID
The user the compositor drops to when started as root. swm-wl refuses root without them.
The seat socket libseat connects to. Set it to /run/scrotwmos/seat.sock, with LIBSEAT_BACKEND set to seatd, to use the root monitor's seat.
When set to 1, the screen is locked before the first frame, until a lock client unlocks it. byol's boot sets it when the TPM opened the disk and no one typed the password.
The number of the virtual terminal that the root monitor's seat takes and switches. It is never guessed: without it, the root monitor's seat switches none.
When set, WAYLAND_DISPLAY is cleared, so swm-wl nests in X11.
, WLR_RENDERER
wlroots' choice of backend and renderer, such as headless and pixman for a run with no screen.
Clear it before you start swm-wl: a library preloaded for another window manager breaks it.

A program started on the host gets WAYLAND_DISPLAY, DISPLAY when Xwayland runs, XDG_ACTIVATION_TOKEN, and _SWM_WS, its workspace, counting from 0. Each wayland_setenv line is set in it too. A program started in a session gets the session's environment.

~/.scrotwmos.conf
user settings
/etc/scrotwmos.conf
global settings, read only when there is no ~/.scrotwmos.conf
~/.scrotwmos-wayland.conf
user settings read on top
/etc/scrotwmos/dom0.conf
the appliance's settings
/run/scrotwmos/seat.sock
the root monitor's seat
$XDG_RUNTIME_DIR/swm-wl.log
the console's diagnostics

Read the configuration again.
, SIGTERM
Quit. Outside dom0, each session is told to stop, 19 seconds at most. The programs the compositor started are asked to close their windows, then get SIGHUP, then SIGTERM, then SIGKILL.

swm-wl exits 0 when it quits, 122 when it refuses its configuration, and 1 on any other failure. The dom0 build exits 120 for the root monitor to power the machine off, and 123 for it to reboot. Under sudo, the root monitor is the process that exits, and it exits 0. On the appliance, a refused configuration powers the machine off.

Nested, in a running session:

$ LD_PRELOAD= swm-wl

On the console, with container sessions, keeping the log:

$ LD_PRELOAD= sudo -E swm-wl 2> /tmp/swm.log

With no screen, for tests:

$ WLR_BACKENDS=headless WLR_RENDERER=pixman swm-wl

swm-x11(1), scrotwmos.conf(5), scrotwmos(7), scrotwmd(8), swm-vmm(8)

Marco Peereboom <marco@peereboom.us>

October 9, 2026 Void Linux