scrotwmos
SCROTWMOS(7) Miscellaneous Information Manual SCROTWMOS(7)

scrotwmos — a tiling window manager that separates what you run

scrotwmos is a tiling window manager with increasing levels of paranoia for application separation. It tiles like spectrwm, and it runs each workspace's programs in a sandbox of their own.

It runs in three modes:

The appliance
swm-wl(1) is the whole operating system. Its host, dom0, runs the compositor and nothing else. Everything else runs in encrypted worlds, each opened by its own username and password at boot. See scrotwmos-dom0(7).
byol
Bring your own Linux: a Void Linux install with swm-wl(1) as its desktop, an encrypted root, and sessions in containers and VMs. See scrotwmos-byol(7).
A plain desktop
swm-x11(1) is the window manager under X11. swm-wl(1) is a Wayland compositor that can run sessions in containers and VMs. swm-web(1) tiles terminals in a web browser.

swmtool(8) installs the appliance and byol from the install stick, and runs byol's own VMs on Void's qemu.

swm-x11(1)
the window manager for X11
swm-wl(1)
the Wayland compositor
swm-web(1)
tiling terminals in a web browser
scrotwmos.conf(5)
the window manager's configuration file
scrotwmos-dom0(7)
the appliance: how a box in this mode works
scrotwmos-byol(7)
scrotwmos on your own Void Linux
swmtool(8)
install and repair scrotwmos, and run byol's own VMs
swmtool-answer(5)
the install plan
swmstub(8)
the UEFI boot loaders
scrotwmd(8)
the display server inside a session
scrotwmctl(1)
send one bus command to scrotwmd
swm-vmm(8)
the virtual machine monitor
vmm-gfx(8)
run a VM's GPU commands on the host GPU
gpu-probe(8)
check that a VM can compute on its NVIDIA GPU
swm-tt(8)
ttvm's first process
swm-ntp(8)
the net VM's NTP client

Each workspace belongs to a session. A program started on a workspace runs in that workspace's session. A window cannot move to a workspace of another session. A session with a session_color colors its window borders. A session is a container or a VM. A container runs in Linux namespaces on the host's kernel with its own uid. A VM runs under swm-vmm(8) and boots the signed guest kernel unless session_kernel names another. Inside a session, scrotwmd(8) is the display server its programs talk to. scrotwmos.conf(5) describes the sessions.

On the appliance, dom0 has no shell, so the compositor draws its own tabs: MOD+F1 to MOD+F12. See scrotwmos-dom0(7).

When something goes wrong, the compositor draws a band across the top of every output. The band shows a code, what happened, and what to do. On byol, it also names the log, /var/log/swm-wl.log. On the appliance, F3 shows the log, and F4 shows the alerts. Amber means that the desktop carries on. Red means a dead end, where the world did not open. Esc continues an alert, and so does a click on the band. Enter continues a dead end too. Under the appliance's lock, the band hides, and the lock says how many alerts wait.

A code is #DSCCEEEE: D is 8 for a dead end and 0 otherwise, S the subsystem, CC the class, and EEEE the error. Each code below gives what happened, then what to do. On byol, the band gives its own words where these speak of worlds, rescue, the stick, or the tabs.

disk line in world fstab not mounted fix world fstab; rest of world runs
VM lied to its device; VM stopped treat world as compromised; do not restart
VM guest crashed restart; if crashes repeat, rescue it
VM guest asked to reboot; VM stopped restart from workspace
VMM call forbidden by its filter; VMM killed do not restart: filter hole or escape
session ended with error restart; if it ends again, rescue its world
session killed by signal restart from workspace
session out of memory at its limit; killed restart; if it repeats, raise its session_mem_max
session with no network ended for approved NIC start program in it; session starts on network
session did not start at boot; workspace empty start program there to retry; else check its config
session sent or kept frame buffers past dom0 checks suspect its world; its frames copied from now on
dom0 could not make session frame buffers free memory; frames copied until screen changes
program not started: workspace has no session name session for workspace, or session_default
program not started: session not running start session first, then program
program not started: dom0 runs no programs of its own route workspace to session in world
alerts lost: came faster than shown nothing; object names worst lost code
net VM lied to its device; net VM stopped restarts; if again, suspect its image
net VM guest crashed; restarts nothing if it comes back; if it repeats, update by stick
net VM guest asked to reboot; restarts nothing if it comes back; if it repeats, update by stick
net VM VMM call forbidden by its filter; killed report it: filter hole or escape
net VM ended with error; restarts nothing if it comes back; if it repeats, update by stick
net VM killed by signal; restarts nothing if it comes back; if it repeats, update by stick
net VM stopped by itself; restarts nothing if it comes back; if it repeats, update by stick
net VM out of memory at its limit; restarts if it repeats, update by stick: limit too small
monitor stopped net VM; restarts nothing if it comes back; if it repeats, update by stick
net VM keeps ending; restart delay at maximum no network until it stays up; if never, update by stick
no network card: no network put in listed network card, then power on
network card shares IOMMU group: no network move it to another slot, or turn on ACS in firmware
network card not listed: no network update by stick for release that lists it
network card listed as unsafe: no network put in another network card
network card failed DMA checks: no network move it to another slot, or put in another network card
network card not measured: no network F9: measure
kernel cannot pass network card: no network put in another network card
network card in no IOMMU group: no network turn on IOMMU in firmware: VT-d, AMD-Vi
network card not held: no network power off and on
clock stepped over 30 days by network time check date and time; RTC battery may be dead
network card not set up in net VM: held this boot power off and on; if it stays, update by stick
network card taken by another driver: held this boot power off and on
machine did not sleep: monitor refused or failed sleep again with F10; screen stays locked
battery low: 15% or less, draining plug in, or save work
battery 5% or less: power off at 3% save work now, or plug in
battery unread: level unknown, no low alert plug in; save work
battery reader failed: level unknown, no low alert plug in; save work; power off and on
window manager crashed; machine restarted every world stopped: unsaved work in them lost
screen cannot show pointer on its own: no tag there put pointer on another screen; check who has keys
monitor link broken: panels, sessions, unlock unavailable save work; power off and on
USB authorization not off: new devices bind without approval plug in no USB device; power off and on
held card no longer held: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card IOMMU group not strict DMA: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card interrupts not fenced: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card IOMMU group has direct region: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card cannot reset on its own: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card path can hot-plug or unreadable: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card shares its IOMMU group or slot: no VM gets it no VM gets it whole; VMs get shared GPU path or none
held card has ATS on: no VM gets it no VM gets it whole; VMs get shared GPU path or none
VM started with no GPU: build cannot give its path VM runs, drawn by CPU; update by stick for its GPU
VM has no GPU: machine fails GPU sharing gate VM runs, drawn by CPU; update by stick for its GPU
GPU hangs, no VM named: VM GPUs off until reboot VMs and desktop draw by CPU; reboot for GPU again
VM GPU process ended; VM runs on with no GPU save its work; restart VM to get GPU back
session hung GPU; kernel reset its GPU work nothing if once; 3 in one minute: that VM loses its GPU
VM hung GPU too often; its GPU off VM runs on, drawn by CPU; restart VM for its GPU
screen VM ended; dom0 draws desktop by CPU nothing: restarts by itself; draws when up
screen VM keeps ending; restart delay at maximum dom0 draws by CPU until it stays up; if never, reboot
screen VM ended 3 times with this session's windows open close session if screen keeps ending: may feed bad pixels
no screen VM this boot: machine fails GPU sharing gate desktop draws by CPU: machine cannot share its GPU
no screen VM this boot: no native context on display GPU desktop draws by CPU; update by stick for its GPU
held card ROM not recorded: no VM gets it if card is yours, approve ROM: F9, its row, Enter
held card ROM changed since approval if you updated its firmware, approve: F9, its row, Enter
held card ROM changed after VM had it treat that VM as hostile; power off before any approval
held card ROM read failed: no VM gets it held this boot; power off and on to read again
held card ROM record does not open: swmdata may be tampered check swmdata; if card trusted: F9, its row, Enter
held card did not reset after VM: no VM gets it held this boot; power off and on to use it
VM GPU setup failed; GPU held restart VM for next GPU path
VM GPU taken by another driver; GPU held restart VM for next GPU path
held card outlives its VM: descriptor still open on vfio-pci this boot; power off and on
held card hand-off stuck in kernel held this boot; power off and on to use it
held card: take or check for VM failed held this boot; power off and on to retry
held card stays on vfio-pci: hold again failed no VM gets it this boot; power off and on to hold again
two disks labeled swmdata; world did not open remove disk not this machine's, then power on
no disk labeled swmdata; world did not open attach this machine's disk, then power on again
world key did not open swmdata power on again with this world's own password
swmdata opened, mount failed power on rescue world; check disk

scrotwmctl(1), swm-web(1), swm-wl(1), swm-x11(1), scrotwmos.conf(5), swmtool-answer(5), scrotwmos-byol(7), scrotwmos-dom0(7), gpu-probe(8), scrotwmd(8), swm-ntp(8), swm-tt(8), swm-vmm(8), swmstub(8), swmtool(8), vmm-gfx(8)

scrotwmos grew out of scrotwm, which became spectrwm.

Marco Peereboom <marco@peereboom.us>

November 13, 2026 Void Linux