| SCROTWMOS(7) | Miscellaneous Information Manual | SCROTWMOS(7) |
NAME
scrotwmos — a
tiling window manager that separates what you run
DESCRIPTION
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.
The manual pages
- 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
Workspaces and sessions
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.
Tabs
On the appliance, dom0 has no shell, so the compositor draws its
own tabs: MOD+F1 to MOD+F12.
See scrotwmos-dom0(7).
Alerts
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.
#01020001- disk line in world fstab not mounted fix world fstab; rest of world runs
#02010002- VM lied to its device; VM stopped treat world as compromised; do not restart
#02010003- VM guest crashed restart; if crashes repeat, rescue it
#02010004- VM guest asked to reboot; VM stopped restart from workspace
#02010005- VMM call forbidden by its filter; VMM killed do not restart: filter hole or escape
#02020001- session ended with error restart; if it ends again, rescue its world
#02020002- session killed by signal restart from workspace
#02020003- session out of memory at its limit; killed restart; if it repeats, raise its session_mem_max
#02020004- session with no network ended for approved NIC start program in it; session starts on network
#02030001- session did not start at boot; workspace empty start program there to retry; else check its config
#02040001- session sent or kept frame buffers past dom0 checks suspect its world; its frames copied from now on
#02040002- dom0 could not make session frame buffers free memory; frames copied until screen changes
#03010001- program not started: workspace has no session name session for workspace, or session_default
#03010002- program not started: session not running start session first, then program
#03010003- program not started: dom0 runs no programs of its own route workspace to session in world
#04010001- alerts lost: came faster than shown nothing; object names worst lost code
#05010002- net VM lied to its device; net VM stopped restarts; if again, suspect its image
#05010003- net VM guest crashed; restarts nothing if it comes back; if it repeats, update by stick
#05010004- net VM guest asked to reboot; restarts nothing if it comes back; if it repeats, update by stick
#05010005- net VM VMM call forbidden by its filter; killed report it: filter hole or escape
#05020001- net VM ended with error; restarts nothing if it comes back; if it repeats, update by stick
#05020002- net VM killed by signal; restarts nothing if it comes back; if it repeats, update by stick
#05020003- net VM stopped by itself; restarts nothing if it comes back; if it repeats, update by stick
#05020004- net VM out of memory at its limit; restarts if it repeats, update by stick: limit too small
#05030001- monitor stopped net VM; restarts nothing if it comes back; if it repeats, update by stick
#05040001- net VM keeps ending; restart delay at maximum no network until it stays up; if never, update by stick
#05050001- no network card: no network put in listed network card, then power on
#05050002- network card shares IOMMU group: no network move it to another slot, or turn on ACS in firmware
#05050003- network card not listed: no network update by stick for release that lists it
#05050004- network card listed as unsafe: no network put in another network card
#05050005- network card failed DMA checks: no network move it to another slot, or put in another network card
#05050006- network card not measured: no network F9: measure
#05050007- kernel cannot pass network card: no network put in another network card
#05050008- network card in no IOMMU group: no network turn on IOMMU in firmware: VT-d, AMD-Vi
#05050009- network card not held: no network power off and on
#05060001- clock stepped over 30 days by network time check date and time; RTC battery may be dead
#05070001- network card not set up in net VM: held this boot power off and on; if it stays, update by stick
#05070002- network card taken by another driver: held this boot power off and on
#06010001- machine did not sleep: monitor refused or failed sleep again with F10; screen stays locked
#06020001- battery low: 15% or less, draining plug in, or save work
#06020002- battery 5% or less: power off at 3% save work now, or plug in
#06020003- battery unread: level unknown, no low alert plug in; save work
#06020004- battery reader failed: level unknown, no low alert plug in; save work; power off and on
#07010001- window manager crashed; machine restarted every world stopped: unsaved work in them lost
#07020001- screen cannot show pointer on its own: no tag there put pointer on another screen; check who has keys
#07030001- monitor link broken: panels, sessions, unlock unavailable save work; power off and on
#07040001- USB authorization not off: new devices bind without approval plug in no USB device; power off and on
#08010001- held card no longer held: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010002- held card IOMMU group not strict DMA: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010003- held card interrupts not fenced: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010004- held card IOMMU group has direct region: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010005- held card cannot reset on its own: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010006- held card path can hot-plug or unreadable: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010007- held card shares its IOMMU group or slot: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08010008- held card has ATS on: no VM gets it no VM gets it whole; VMs get shared GPU path or none
#08020001- VM started with no GPU: build cannot give its path VM runs, drawn by CPU; update by stick for its GPU
#08020002- VM has no GPU: machine fails GPU sharing gate VM runs, drawn by CPU; update by stick for its GPU
#08020003- GPU hangs, no VM named: VM GPUs off until reboot VMs and desktop draw by CPU; reboot for GPU again
#08030001- VM GPU process ended; VM runs on with no GPU save its work; restart VM to get GPU back
#08030002- session hung GPU; kernel reset its GPU work nothing if once; 3 in one minute: that VM loses its GPU
#08030003- VM hung GPU too often; its GPU off VM runs on, drawn by CPU; restart VM for its GPU
#08030004- screen VM ended; dom0 draws desktop by CPU nothing: restarts by itself; draws when up
#08030005- screen VM keeps ending; restart delay at maximum dom0 draws by CPU until it stays up; if never, reboot
#08030006- screen VM ended 3 times with this session's windows open close session if screen keeps ending: may feed bad pixels
#08030007- no screen VM this boot: machine fails GPU sharing gate desktop draws by CPU: machine cannot share its GPU
#08030008- no screen VM this boot: no native context on display GPU desktop draws by CPU; update by stick for its GPU
#08050001- held card ROM not recorded: no VM gets it if card is yours, approve ROM: F9, its row, Enter
#08050002- held card ROM changed since approval if you updated its firmware, approve: F9, its row, Enter
#08050003- held card ROM changed after VM had it treat that VM as hostile; power off before any approval
#08050004- held card ROM read failed: no VM gets it held this boot; power off and on to read again
#08050005- held card ROM record does not open: swmdata may be tampered check swmdata; if card trusted: F9, its row, Enter
#08050006- held card did not reset after VM: no VM gets it held this boot; power off and on to use it
#08050007- VM GPU setup failed; GPU held restart VM for next GPU path
#08050008- VM GPU taken by another driver; GPU held restart VM for next GPU path
#08050009- held card outlives its VM: descriptor still open on vfio-pci this boot; power off and on
#0805000A- held card hand-off stuck in kernel held this boot; power off and on to use it
#0805000B- held card: take or check for VM failed held this boot; power off and on to retry
#0805000C- held card stays on vfio-pci: hold again failed no VM gets it this boot; power off and on to hold again
#81010001- two disks labeled swmdata; world did not open remove disk not this machine's, then power on
#81010002- no disk labeled swmdata; world did not open attach this machine's disk, then power on again
#81010003- world key did not open swmdata power on again with this world's own password
#81010004- swmdata opened, mount failed power on rescue world; check disk
SEE ALSO
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)
HISTORY
scrotwmos grew out of scrotwm, which became spectrwm.
AUTHORS
Marco Peereboom <marco@peereboom.us>
| November 13, 2026 | Void Linux |