| SWM-WL(1) | General Commands Manual | SWM-WL(1) |
NAME
swm-wl — scrotwmos
Wayland compositor
SYNOPSIS
swm-wl |
[-f file]
[-s command] |
DESCRIPTION
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:
-ffile- Read file instead of ~/.scrotwmos.conf, /etc/scrotwmos.conf, and ~/.scrotwmos-wayland.conf.
-scommand- 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.
ENVIRONMENT
XDG_RUNTIME_DIR- Where the Wayland socket goes. It must be set. A short path is best.
SWM_LOG- 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.
HOME- Where ~/.scrotwmos.conf and ~/.scrotwmos-wayland.conf are found. Under sudo, it should stay the invoking user's.
SUDO_UID,SUDO_GID- The user the compositor drops to when started as root.
swm-wlrefuses root without them. SEATD_SOCK- The seat socket libseat connects to. Set it to
/run/scrotwmos/seat.sock, with
LIBSEAT_BACKENDset toseatd, to use the root monitor's seat. SWM_LOCKED- 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. SWM_VT- 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.
DISPLAY- When set,
WAYLAND_DISPLAYis cleared, soswm-wlnests in X11. WLR_BACKENDS,WLR_RENDERER- wlroots' choice of backend and renderer, such as
headlessandpixmanfor a run with no screen. LD_PRELOAD- 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.
FILES
- ~/.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
SIGNALS
EXIT STATUS
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.
EXAMPLES
Nested, in a running session:
$ LD_PRELOAD= swm-wlOn the console, with container sessions, keeping the log:
$ LD_PRELOAD= sudo -E swm-wl 2>
/tmp/swm.logWith no screen, for tests:
$ WLR_BACKENDS=headless
WLR_RENDERER=pixman swm-wlSEE ALSO
swm-x11(1), scrotwmos.conf(5), scrotwmos(7), scrotwmd(8), swm-vmm(8)
AUTHORS
Marco Peereboom <marco@peereboom.us>
| October 9, 2026 | Void Linux |