2007-04-27 21:58:48 +04:00
|
|
|
.\" $OpenBSD$
|
|
|
|
.\"
|
2008-01-11 19:06:44 +03:00
|
|
|
.\" Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org>
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
|
|
.\"
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
.\"
|
2014-08-25 16:49:19 +04:00
|
|
|
.Dd $Mdocdate$
|
2007-04-27 21:58:48 +04:00
|
|
|
.Dt CWM 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cwm
|
|
|
|
.Nd a lightweight and efficient window manager for X11
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.\" For a program: program [-abc] file ...
|
|
|
|
.Nm cwm
|
2019-02-25 21:07:48 +03:00
|
|
|
.Op Fl nv
|
2008-03-23 18:09:21 +03:00
|
|
|
.Op Fl c Ar file
|
2008-06-25 05:09:09 +04:00
|
|
|
.Op Fl d Ar display
|
2007-04-27 21:58:48 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2008-01-16 19:14:55 +03:00
|
|
|
is a window manager for X11 which contains many features that
|
2015-06-01 02:07:36 +03:00
|
|
|
concentrate on the efficiency and transparency of window management,
|
|
|
|
while maintaining the simplest and most pleasant aesthetic.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl c Ar file
|
|
|
|
Specify an alternative configuration file.
|
|
|
|
By default,
|
2007-04-27 21:58:48 +04:00
|
|
|
.Nm
|
2015-06-01 02:07:36 +03:00
|
|
|
loads
|
|
|
|
.Pa ~/.cwmrc ,
|
|
|
|
if present.
|
|
|
|
Any error messages from lines in the configuration file will be sent to
|
|
|
|
.Em stderr ;
|
|
|
|
however,
|
|
|
|
.Nm
|
|
|
|
will continue to process the rest of the configuration file.
|
|
|
|
.It Fl d Ar display
|
|
|
|
Specify the display to use.
|
2019-02-25 21:07:48 +03:00
|
|
|
.It Fl n
|
|
|
|
Configtest mode.
|
|
|
|
Only check the configuration file for validity.
|
2018-02-05 01:56:26 +03:00
|
|
|
.It Fl v
|
|
|
|
Verbose mode.
|
|
|
|
Multiple
|
|
|
|
.Fl v
|
|
|
|
options increase the verbosity.
|
2015-06-01 02:07:36 +03:00
|
|
|
.El
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
.Nm
|
|
|
|
actions are initiated either via key or mouse bindings.
|
|
|
|
The following notations are used throughout this page:
|
2007-06-30 01:10:37 +04:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It Ic C
|
2015-06-01 02:07:36 +03:00
|
|
|
Control key.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M
|
2015-06-01 02:07:36 +03:00
|
|
|
Meta key.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic S
|
2015-06-01 02:07:36 +03:00
|
|
|
Shift key.
|
|
|
|
.It Ic 4
|
|
|
|
Mod4 (windows) key.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M1
|
2009-06-19 00:44:40 +04:00
|
|
|
Left mouse button.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M2
|
2009-06-19 00:44:40 +04:00
|
|
|
Middle mouse button.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M3
|
2009-06-19 00:44:40 +04:00
|
|
|
Right mouse button.
|
2007-04-27 21:58:48 +04:00
|
|
|
.El
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
The default key bindings are:
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2009-06-19 00:24:54 +04:00
|
|
|
.Bl -tag -width "CM-EscapeXXXXX" -offset indent -compact
|
|
|
|
.It Ic CM-Return
|
2007-04-27 21:58:48 +04:00
|
|
|
Spawn a new terminal.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-Delete
|
2007-04-27 21:58:48 +04:00
|
|
|
Lock the screen.
|
2008-06-05 18:29:01 +04:00
|
|
|
.It Ic M-Return
|
2007-04-27 21:58:48 +04:00
|
|
|
Hide current window.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M-Down
|
2007-04-27 21:58:48 +04:00
|
|
|
Lower current window.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M-Up
|
2007-04-27 21:58:48 +04:00
|
|
|
Raise current window.
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic M-slash
|
2007-04-27 21:58:48 +04:00
|
|
|
Search for windows.
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic C-slash
|
2007-04-27 21:58:48 +04:00
|
|
|
Search for applications.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-n
|
2007-04-27 21:58:48 +04:00
|
|
|
Label current window.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M-Tab
|
2007-04-27 21:58:48 +04:00
|
|
|
Cycle through currently visible windows.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic MS-Tab
|
2007-04-27 21:58:48 +04:00
|
|
|
Reverse cycle through currently visible windows.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-x
|
2019-02-22 22:40:32 +03:00
|
|
|
Close current window.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-[n]
|
2016-10-05 17:01:23 +03:00
|
|
|
Toggle visibility of group n, where n is 1-9.
|
2016-10-05 16:35:17 +03:00
|
|
|
.It Ic CM-a
|
2016-10-05 17:01:23 +03:00
|
|
|
Toggle visibility of all groups.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-g
|
2008-07-11 19:42:29 +04:00
|
|
|
Toggle group membership of current window.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M-Right
|
2008-05-19 21:11:19 +04:00
|
|
|
Cycle through active groups.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It Ic M-Left
|
2008-05-19 21:11:19 +04:00
|
|
|
Reverse cycle through active groups.
|
2011-05-07 21:15:37 +04:00
|
|
|
.It Ic CMS-f
|
|
|
|
Toggle freezing geometry of current window.
|
2014-08-25 16:49:19 +04:00
|
|
|
.It Ic CM-s
|
|
|
|
Toggle stickiness of current window.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-f
|
2013-12-16 23:02:17 +04:00
|
|
|
Toggle full-screen mode of current window.
|
|
|
|
.It Ic CM-m
|
|
|
|
Toggle maximization of current window.
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic CM-equal
|
2008-07-11 19:42:29 +04:00
|
|
|
Toggle vertical maximization of current window.
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic CMS-equal
|
2009-08-25 03:54:41 +04:00
|
|
|
Toggle horizontal maximization of current window.
|
2015-06-01 02:07:36 +03:00
|
|
|
.It Ic M-[hjkl]
|
|
|
|
Move window by a small amount.
|
|
|
|
.It Ic MS-[hjkl]
|
|
|
|
Move window by a large amount; see
|
|
|
|
.Xr cwmrc 5 .
|
|
|
|
.It Ic CM-[hjkl]
|
|
|
|
Resize window by a small amount.
|
|
|
|
.It Ic CMS-[hjkl]
|
|
|
|
Resize window by a large amount; see
|
|
|
|
.Xr cwmrc 5 .
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic M-question
|
2007-06-30 01:10:37 +04:00
|
|
|
Spawn
|
2009-06-19 14:43:49 +04:00
|
|
|
.Dq exec program
|
2007-06-30 01:10:37 +04:00
|
|
|
dialog.
|
2017-07-21 18:55:37 +03:00
|
|
|
.It Ic M-period
|
2007-06-30 01:10:37 +04:00
|
|
|
Spawn
|
2009-06-19 14:43:49 +04:00
|
|
|
.Dq ssh to
|
2007-06-30 01:10:37 +04:00
|
|
|
dialog.
|
|
|
|
This parses
|
|
|
|
.Pa $HOME/.ssh/known_hosts
|
|
|
|
to provide host auto-completion.
|
|
|
|
.Xr ssh 1
|
|
|
|
will be executed via the configured terminal emulator.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-w
|
2007-11-28 19:35:52 +03:00
|
|
|
Spawn
|
2009-06-19 14:43:49 +04:00
|
|
|
.Dq exec WindowManager
|
2017-12-29 23:03:46 +03:00
|
|
|
menu, allowing a switch to another window manager.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CMS-r
|
2015-06-01 02:07:36 +03:00
|
|
|
Restart.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CMS-q
|
2015-06-01 02:07:36 +03:00
|
|
|
Quit.
|
2007-04-27 21:58:48 +04:00
|
|
|
.El
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2014-02-01 04:25:04 +04:00
|
|
|
The default mouse bindings are:
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width "CM-EscapeXXXXX" -offset indent -compact
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M-M1
|
2008-07-11 19:42:29 +04:00
|
|
|
Move current window.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CM-M1
|
2008-07-11 19:42:29 +04:00
|
|
|
Toggle group membership of current window.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M-M2
|
2008-07-11 19:42:29 +04:00
|
|
|
Resize current window
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M-M3
|
2008-07-11 19:42:29 +04:00
|
|
|
Lower current window.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic CMS-M3
|
2008-07-11 19:42:29 +04:00
|
|
|
Hide current window.
|
2007-04-27 21:58:48 +04:00
|
|
|
.El
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
The following key bindings may be used to navigate
|
|
|
|
search and exec dialogs:
|
2007-11-08 00:58:03 +03:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width "[Down] or C-s or M-j" -offset indent -compact
|
|
|
|
.It Ic [Return]
|
|
|
|
Select item.
|
|
|
|
.It Ic [Down], C-s No or Ic M-j
|
|
|
|
Next item.
|
|
|
|
.It Ic [Up], C-r No or Ic M-k
|
|
|
|
Previous item.
|
|
|
|
.It Ic [Backspace] No or Ic C-h
|
|
|
|
Backspace.
|
|
|
|
.It Ic C-u
|
|
|
|
Clear input.
|
|
|
|
.It Ic C-a
|
|
|
|
List all available items.
|
|
|
|
.It Ic [Esc]
|
|
|
|
Cancel.
|
|
|
|
.El
|
2017-12-27 21:46:18 +03:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
rereads its configuration file when it receives a hangup signal,
|
|
|
|
.Dv SIGHUP ,
|
|
|
|
by executing itself with the name and arguments with which it was started.
|
2017-12-31 01:25:09 +03:00
|
|
|
This is equivalent to the
|
2017-12-27 21:46:18 +03:00
|
|
|
.Ar restart
|
|
|
|
function.
|
2007-04-27 21:58:48 +04:00
|
|
|
.Sh SEARCH
|
2007-06-30 01:10:37 +04:00
|
|
|
.Nm
|
|
|
|
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.
|
2007-04-27 21:58:48 +04:00
|
|
|
.Nm
|
|
|
|
keeps a history of the 5 previous titles of a window.
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2007-04-27 21:58:48 +04:00
|
|
|
When searching, the leftmost character of the result list may show a
|
|
|
|
flag:
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
2007-06-30 01:10:37 +04:00
|
|
|
.It !
|
2015-06-01 02:07:36 +03:00
|
|
|
Window is currently focused.
|
2007-06-30 01:10:37 +04:00
|
|
|
.It &
|
2015-06-01 02:07:36 +03:00
|
|
|
Window is hidden.
|
2007-04-27 21:58:48 +04:00
|
|
|
.El
|
2019-07-10 00:38:44 +03:00
|
|
|
.Sh APPLICATIONS
|
|
|
|
.Nm
|
|
|
|
manages a list of applications defined with the
|
|
|
|
.Cm command
|
|
|
|
configuration option.
|
2007-04-27 21:58:48 +04:00
|
|
|
.Sh GROUPS
|
|
|
|
.Nm
|
|
|
|
has the ability to group windows together, and use the groups to
|
|
|
|
perform operations on the entire group instead of just one window.
|
2007-05-11 01:28:23 +04:00
|
|
|
Together with the
|
2008-03-23 18:09:21 +03:00
|
|
|
.Pa sticky
|
2007-04-27 21:58:48 +04:00
|
|
|
option, this can be used to emulate virtual desktops.
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2008-03-22 18:09:45 +03:00
|
|
|
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.
|
2007-04-27 21:58:48 +04:00
|
|
|
.Sh MENUS
|
|
|
|
Menus are recalled by clicking the mouse on the root window:
|
2007-05-11 01:28:23 +04:00
|
|
|
.Pp
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M1
|
2016-12-01 21:17:52 +03:00
|
|
|
Show list of currently defined windows.
|
|
|
|
Selecting an item will warp to that window, unhiding it if necessary.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M2
|
2007-05-11 01:28:23 +04:00
|
|
|
Show list of currently defined groups.
|
2015-06-01 02:07:36 +03:00
|
|
|
Selecting an item will hide/unhide that group.
|
2009-06-19 00:24:54 +04:00
|
|
|
.It Ic M3
|
2019-07-10 00:38:44 +03:00
|
|
|
Show list of applications as defined in the configuration file.
|
2015-06-01 02:07:36 +03:00
|
|
|
Selecting an item will spawn that application.
|
2007-04-27 21:58:48 +04:00
|
|
|
.El
|
2007-06-30 01:10:37 +04:00
|
|
|
.Sh ENVIRONMENT
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width "DISPLAYXXX" -compact
|
2007-06-30 01:10:37 +04:00
|
|
|
.It DISPLAY
|
|
|
|
.Nm
|
|
|
|
starts on this display unless the
|
|
|
|
.Fl d
|
|
|
|
option is given.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
2015-06-01 02:07:36 +03:00
|
|
|
.Bl -tag -width "~/.cwmrcXX" -compact
|
2008-03-23 18:09:21 +03:00
|
|
|
.It Pa ~/.cwmrc
|
2015-06-01 02:07:36 +03:00
|
|
|
Default
|
|
|
|
.Nm
|
|
|
|
configuration file.
|
2008-09-22 18:37:12 +04:00
|
|
|
.El
|
2008-03-23 18:09:21 +03:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cwmrc 5
|
2012-05-09 22:37:39 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
.Nm
|
|
|
|
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.
|
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
first appeared in
|
|
|
|
.Ox 4.2 .
|
2007-06-30 01:10:37 +04:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
2007-04-27 21:58:48 +04:00
|
|
|
.Nm
|
2008-01-16 19:14:55 +03:00
|
|
|
was developed by
|
2007-06-30 01:10:37 +04:00
|
|
|
.An Marius Aamodt Eriksen Aq marius@monkey.org
|
|
|
|
with contributions from
|
|
|
|
.An Andy Adamson Aq dros@monkey.org ,
|
|
|
|
.An Niels Provos Aq provos@monkey.org ,
|
|
|
|
and
|
2010-09-26 01:58:18 +04:00
|
|
|
.An Antti Nyk\(:anen Aq aon@iki.fi .
|
2007-04-27 21:58:48 +04:00
|
|
|
Ideas, discussion with many others.
|