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

swm-x11 — scrotwmos window manager for X11

swm-x11 [-dhv] [-c file]

swm-x11 is the scrotwmos window manager under X11. It is spectrwm on the scrotwmos tiling core: the same layouts, keys, and configuration, without sessions. scrotwmos.conf(5) describes the configuration and the key bindings.

The options are as follows:

file
Read file instead of ~/.scrotwmos.conf and /etc/scrotwmos.conf. swm-x11 refuses a file that does not exist.
Log debug output to the standard error.
Print the usage and exit.
Print the version to the standard error and exit.

At a start, swm-x11 refuses a configuration that does not parse. On a restart, it comes up on what parsed before the bad line.

Start it from ~/.xinitrc as the last command, or in a nested X server such as Xephyr.

Every program swm-x11 starts gets SWM_STARTED. A program started by a program binding or by autorun also gets _SWM_WS, _SWM_XTERM_FONTADJ, and LD_PRELOAD, as below. Its standard input and output are /dev/null. The search and window menus get none of these three.

Set to YES.
The program's workspace, unless its spawn flags say nospawnws.
Set when its spawn flags say xterm_fontadj.
libswmhack, ahead of any library already there, when either of the two above is set. libswmhack puts the workspace on each window the program creates, as the _SWM_WS property. So a program slow to its first window, or one that forks before it, still opens on the workspace it was started from.
Set by a restart for the new run, and cleared once the configuration is read.

A nospawnws program keeps whatever of _SWM_WS, _SWM_XTERM_FONTADJ, and LD_PRELOAD swm-x11 itself was given. Without libswmhack at its build path, a program gets none of the three.

~/.scrotwmos.conf
user settings
/etc/scrotwmos.conf
global settings, read only when there is no ~/.scrotwmos.conf
build/lib/libswmhack/libswmhack.so
the library preloaded into the programs it starts, at the build's path as it was built; when it is missing at start, swm-x11 says so once and preloads none

Restart.
Read the configuration again without a restart.
, SIGTERM, SIGQUIT
Quit.

swm-x11 exits 0 when it quits, and 1 when it fails or refuses its configuration. -h and -v exit 1.

In a nested X server:

$ Xephyr :1 -screen 1280x800 &
$ LD_PRELOAD= DISPLAY=:1 swm-x11

swm-wl(1), scrotwmos.conf(5), scrotwmos(7)

swm-x11 is spectrwm, which was inspired by xmonad and dwm.

Marco Peereboom <marco@peereboom.us>

October 9, 2026 Void Linux