| SWM-X11(1) | General Commands Manual | SWM-X11(1) |
NAME
swm-x11 —
scrotwmos window manager for X11
SYNOPSIS
swm-x11 |
[-dhv] [-c
file] |
DESCRIPTION
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:
-cfile- Read file instead of
~/.scrotwmos.conf and
/etc/scrotwmos.conf.
swm-x11refuses a file that does not exist. -d- Log debug output to the standard error.
-h- Print the usage and exit.
-v- 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.
ENVIRONMENT
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.
SWM_STARTED- Set to
YES. _SWM_WS- The program's workspace, unless its spawn flags say nospawnws.
_SWM_XTERM_FONTADJ- Set when its spawn flags say xterm_fontadj.
LD_PRELOAD- 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_WSproperty. So a program slow to its first window, or one that forks before it, still opens on the workspace it was started from. SWM_RESTART- 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.
FILES
- ~/.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-x11says so once and preloads none
SIGNALS
EXIT STATUS
swm-x11 exits 0 when it quits, and 1 when
it fails or refuses its configuration. -h and
-v exit 1.
EXAMPLES
In a nested X server:
$ Xephyr :1 -screen 1280x800 & $ LD_PRELOAD= DISPLAY=:1 swm-x11
SEE ALSO
HISTORY
swm-x11 is spectrwm, which was inspired by
xmonad and dwm.
AUTHORS
Marco Peereboom <marco@peereboom.us>
| October 9, 2026 | Void Linux |