CWM(1)
π CWM(1) π
General Commands Manual Β· the cwm page Β· yes bestie, this is the window manager one
β¨ NAME β¨
cwm β a lightweight and efficient window manager for X11 π¦
β¨ SYNOPSIS β¨
cwm [-nv] [-c file] [-d display]
β¨ DESCRIPTION β¨
okay so cwm is a window manager for X11 and she is that girl π
. She's packed with features that are all about the efficiency and transparency of window management, while keeping the absolute simplest and most pleasant aesthetic. Like, no clutter, no drama, just vibes πΈ.
The options are as follows, bestie:
-cfile β pick an alternative configuration file. By defaultcwmloads~/.cwmrc, if present. Any error messages from lines in the configuration file get sent tostderr; butcwmwill keep processing the rest of the configuration file anyway (she's forgiving like that π«Ά).-ddisplay β specify the display to use.-nβ Configtest mode. Only checks the configuration file for validity. no notes, just a vibe check β .-vβ Verbose mode. Multiple-voptions increase the verbosity. the way that stacks... π
π The Notations (memorize these, iykyk)
cwm actions are initiated either via key or mouse bindings. The following notations are used throughout this page:
Cβ Control key.Mβ Meta key.Sβ Shift key.4β Mod4 (windows) key.M1β Left mouse button.M2β Middle mouse button.M3β Right mouse button.
π The Default Key Bindings
these are iconic, periodt:
CM-Return Spawn a new terminal.
CM-Delete Lock the screen.
M-Return Hide current window.
M-Down Lower current window.
M-Up Raise current window.
M-slash Search for windows.
C-slash Search for applications.
CM-n Label current window.
M-Tab Cycle through currently visible windows.
MS-Tab Reverse cycle through currently visible windows.
M-grave Cycle through currently visible windows of the
same window class.
MS-grave Reverse cycle through currently visible windows of
the same window class.
CM-x Close current window.
CM-[n] Toggle visibility of group n, where n is 1-9.
CM-a Toggle visibility of all groups.
CM-g Toggle group membership of current window.
M-Right Cycle through active groups.
M-Left Reverse cycle through active groups.
CMS-f Toggle freezing geometry of current window.
CM-s Toggle stickiness of current window.
CM-f Toggle full-screen mode of current window.
CM-m Toggle maximization of current window.
CM-equal Toggle vertical maximization of current window.
CMS-equal Toggle 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-question Spawn βexec programβ dialog.
M-period Spawn β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-w Spawn βexec WindowManagerβ menu, allowing a switch
to another window manager.
CMS-r Restart.
CMS-q Quit.
π±οΈ The Default Mouse Bindings
M-M1 Move current window.
CM-M1 Toggle group membership of current window.
M-M2 Resize current window
M-M3 Lower current window.
CMS-M3 Hide current window.
π§ Navigating Search and Exec Dialogs
The following key bindings may be used to navigate search and exec dialogs:
[Return] Select item.
[Down], C-s or M-j Next item.
[Up], C-r or M-k Previous item.
[Backspace] or C-h Backspace.
C-u Clear input.
C-a List all available items.
[Esc] Cancel.
π The Reload Glow-Up
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. literally a rebirth moment β¨
π SEARCH π
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. And she keeps a history of the 5 previous titles of a window. memory queen π
When searching, the leftmost character of the result list may show a flag:
!β Window is currently focused.&β Window is hidden.
π APPLICATIONS π
cwm manages a list of applications defined with the command configuration option.
π«Ά GROUPS π«Ά
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. it's giving organized π
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. color-coded communication, we love to see it π
π MENUS π
Menus are recalled by clicking the mouse on the root window:
M1β Show list of currently defined windows. Selecting an item will warp to that window, unhiding it if necessary.M2β Show list of currently defined groups. Selecting an item will hide/unhide that group.M3β Show list of applications as defined in the configuration file. Selecting an item will spawn that application.
πΈ ENVIRONMENT πΈ
DISPLAYβcwmstarts on this display unless the-doption is given.
β FILES β
~/.cwmrcβ Defaultcwmconfiguration file.
π SEE ALSO π
π HISTORY π
cwm was originally inspired by evilwm, but was rewritten from scratch due to limitations in the evilwm codebase. The from-scratch rewrite borrowed some code from 9wm, however that code has since been removed or rewritten. a true glow-up arc π
cwm first appeared in OpenBSD 4.2.
π AUTHORS π
cwm was developed by Marius Aamodt Eriksen <marius@monkey.org> with contributions from Andy Adamson <dros@monkey.org>, Niels Provos <provos@monkey.org>, and Antti NykΓ€nen <aon@iki.fi>. Ideas, discussion with many others. legends only, no cap π
and that's the whole page bestie!! now go bind some keys and slay π¦
Debian Β· $Mdocdate$ Β· CWM(1) β ok love u bye πβ¨π
π¦ where this page comes from
- alpine 3.24: cwm-doc 7.9-r0 Β· ISC
- epel 10: cwm 7.4-4.el10_0 Β· ISC AND LicenseRef-Callaway-BSD
- epel 9: cwm 7.4-4.el9 Β· ISC AND LicenseRef-Callaway-BSD
- fedora 43: cwm 7.4-5.fc43 Β· ISC AND LicenseRef-Callaway-BSD
- fedora 44: cwm 7.4-7.fc44 Β· ISC AND LicenseRef-Callaway-BSD
- nixos 26.05: cwm 7.4
- nixpkgs unstable: cwm 7.9
- Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms