DISPLAY
cwm starts on this display unless the -d option is given.
A lightweight and efficient window manager for x11
Part of cwm(1).
cwm [-nv]
[-c
file]
[-d
display]
cwm is a window manager for X11 which contains many features that concentrate on the efficiency and transparency of window management, while maintaining the simplest and most pleasant aesthetic.
The options are as follows:
-c file
Specify an alternative configuration file. By default, cwm loads ~/.cwmrc, if present. Any error messages from lines in the configuration file will be sent to stderr; however, cwm will continue to process the rest of the configuration file.
-d display
Specify the display to use.
-n
Configtest mode. Only check the configuration file for validity.
-v
Verbose mode. Multiple -v options increase the verbosity.
cwm actions are initiated either via key or mouse bindings. The following notations are used throughout this page:
Control key.
Meta key.
Shift key.
4Mod4 (windows) key.
M1Left mouse button.
M2Middle mouse button.
M3Right mouse button.
The default key bindings are:
CM-ReturnSpawn a new terminal.
CM-DeleteLock the screen.
M-ReturnHide current window.
M-DownLower current window.
M-UpRaise current window.
M-slashSearch for windows.
C-slashSearch for applications.
CM-nLabel current window.
M-TabCycle through currently visible windows.
MS-TabReverse cycle through currently visible windows.
CM-xClose current window.
CM-[n]Toggle visibility of group n, where n is 1–9.
CM-aToggle visibility of all groups.
CM-gToggle group membership of current window.
M-RightCycle through active groups.
M-LeftReverse cycle through active groups.
CMS-fToggle freezing geometry of current window.
CM-sToggle stickiness of current window.
CM-fToggle full-screen mode of current window.
CM-mToggle maximization of current window.
CM-equalToggle vertical maximization of current window.
CMS-equalToggle horizontal maximization of current window.
M-[hjkl]Move window by a small amount.
MS-[hjkl]Move window by a large amount; see cwmrc(5).
CM-[hjkl]Resize window by a small amount.
CMS-[hjkl]Resize window by a large amount; see cwmrc(5).
M-questionSpawn “exec program” dialog.
M-periodSpawn “ssh to” dialog. This parses $HOME/.ssh/known_hosts to provide host auto-completion. ssh(1) will be executed via the configured terminal emulator.
CM-wSpawn “exec WindowManager” menu, allowing a switch to another window manager.
CMS-rRestart.
CMS-qQuit.
The default mouse bindings are:
M-M1Move current window.
CM-M1Toggle group membership of current window.
M-M2Resize current window
M-M3Lower current window.
CMS-M3Hide current window.
The following key bindings may be used to navigate search and exec dialogs:
[Return]Select item.
[Down], C-s or M-jNext item.
[Up], C-r or M-kPrevious item.
[Backspace] or C-hBackspace.
C-uClear input.
C-aList all available items.
[Esc]Cancel.
cwm rereads its configuration file when it receives a hangup signal, SIGHUP, by executing itself with the name and arguments with which it was started. This is equivalent to the restart function.
cwm features the ability to search for windows by their current title, old titles, and by their label. The priority for the search results are: label, current title, old titles in reverse order, and finally window class name. cwm keeps a history of the 5 previous titles of a window.
When searching, the leftmost character of the result list may show a flag:
Window is currently focused.
Window is hidden.
cwm manages a list of applications defined with the command configuration option.
cwm has the ability to group windows together, and use the groups to perform operations on the entire group instead of just one window. Together with the sticky option, this can be used to emulate virtual desktops.
To edit groups, use the group selection commands to toggle membership of a group. A blue border will be shown briefly on windows added to the current group, and a red border will be shown on those just removed.
DISPLAY
cwm starts on this display unless the -d option is given.
~/.cwmrc
Default cwm configuration file.
6 releases since Debian 8 (Jessie); the text changed 4 times.
-n since Debian 11 (Bullseye);
-v since Debian 10 (Buster).