2009-08-24 17:54:41 -06:00
|
|
|
|
.\" $OpenBSD: cwm.1,v 1.43 2009/08/24 23:54:41 oga Exp $
|
2008-01-11 09:06:44 -07: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.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.\"
|
2009-08-24 17:54:41 -06:00
|
|
|
|
.Dd $Mdocdate: August 24 2009 $
|
2007-04-27 11:58:48 -06: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
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.Op Fl c Ar file
|
2008-06-24 19:09:09 -06:00
|
|
|
|
.Op Fl d Ar display
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
.Nm
|
2008-01-16 09:14:55 -07:00
|
|
|
|
is a window manager for X11 which contains many features that
|
|
|
|
|
concentrate on the efficiency and transparency of window management.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm
|
2007-10-07 10:56:21 -06:00
|
|
|
|
also aims to maintain the simplest and most pleasant aesthetic.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-06-29 15:10:37 -06:00
|
|
|
|
The following notation is used throughout this page:
|
|
|
|
|
.Pp
|
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
|
.It Ic C
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Control.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Meta.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic S
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Shift.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M1
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Left mouse button.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M2
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Middle mouse button.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M3
|
2009-06-18 14:44:40 -06:00
|
|
|
|
Right mouse button.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.El
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm
|
2007-05-10 15:28:23 -06:00
|
|
|
|
is very simple in its use.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
Most of the actions are initiated via key bindings.
|
|
|
|
|
The current key bindings are described below;
|
2007-06-29 15:10:37 -06:00
|
|
|
|
their functionality is described in more detail later.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.Bl -tag -width "CM-EscapeXXXXX" -offset indent -compact
|
|
|
|
|
.It Ic CM-Return
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Spawn a new terminal.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-Delete
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Lock the screen.
|
2008-06-05 08:29:01 -06:00
|
|
|
|
.It Ic M-Return
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Hide current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Down
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Lower current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Up
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Raise current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-/
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Search for windows.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-/
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Search for applications.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-n
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Label current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Tab
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Cycle through currently visible windows.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic MS-Tab
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Reverse cycle through currently visible windows.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-x
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Delete current window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-[n]
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select group n, where n is 1-9.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-0
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select all groups.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-g
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Toggle group membership of current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Right
|
2008-05-19 11:11:19 -06:00
|
|
|
|
Cycle through active groups.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Left
|
2008-05-19 11:11:19 -06:00
|
|
|
|
Reverse cycle through active groups.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-f
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Toggle full-screen size of current window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-=
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Toggle vertical maximization of current window.
|
2009-08-24 17:54:41 -06:00
|
|
|
|
.It Ic CMS-=
|
|
|
|
|
Toggle horizontal maximization of current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-?
|
|
|
|
|
Spawn
|
2009-06-19 04:43:49 -06:00
|
|
|
|
.Dq exec program
|
2007-06-29 15:10:37 -06:00
|
|
|
|
dialog.
|
|
|
|
|
.It Ic M-.
|
|
|
|
|
Spawn
|
2009-06-19 04:43:49 -06:00
|
|
|
|
.Dq ssh to
|
2007-06-29 15:10:37 -06: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-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-w
|
2007-11-28 09:35:52 -07:00
|
|
|
|
Spawn
|
2009-06-19 04:43:49 -06:00
|
|
|
|
.Dq exec WindowManager
|
2007-11-28 09:35:52 -07:00
|
|
|
|
dialog; allows you to switch from
|
|
|
|
|
.Nm
|
|
|
|
|
to another window manager without restarting the X server.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CMS-r
|
2008-07-11 09:18:29 -06:00
|
|
|
|
Reload configuration.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CMS-q
|
2008-07-11 09:20:04 -06:00
|
|
|
|
Quit
|
2008-07-11 16:43:44 -06:00
|
|
|
|
.Nm .
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.El
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The mouse bindings are also important, they are:
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M-M1
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Move current window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CM-M1
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Toggle group membership of current window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M-M2
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Resize current window
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M-M3
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Lower current window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic CMS-M3
|
2008-07-11 09:42:29 -06:00
|
|
|
|
Hide current window.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.El
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The options for
|
|
|
|
|
.Nm
|
|
|
|
|
are as follows:
|
|
|
|
|
.Bl -tag -width Ds
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.It Fl c Ar file
|
|
|
|
|
Specify the config file to use. Defaults to
|
|
|
|
|
.Pa ~/.cwmrc .
|
2008-06-24 19:09:09 -06:00
|
|
|
|
.It Fl d Ar display
|
|
|
|
|
Specify the display to use.
|
2007-11-16 16:04:56 -07:00
|
|
|
|
.El
|
2007-11-13 16:08:49 -07:00
|
|
|
|
.Sh POINTER MOVEMENT
|
|
|
|
|
The pointer can be moved with the use of the keyboard through bindings.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.Ic C-[Up|Down|Left|Right]
|
|
|
|
|
moves the pointer a small amount, while
|
|
|
|
|
.Ic CS-[Up|Down|Left|Right]
|
|
|
|
|
moves the pointer a larger amount.
|
2007-11-13 16:08:49 -07:00
|
|
|
|
For example, to move the pointer to the left by a small amount,
|
2009-06-18 14:24:54 -06:00
|
|
|
|
press
|
|
|
|
|
.Ic C-Left .
|
|
|
|
|
To move the pointer down by a larger amount, press
|
|
|
|
|
.Ic CS-Down .
|
2007-11-07 14:58:03 -07:00
|
|
|
|
.Sh WINDOW MOVEMENT AND RESIZING
|
2007-06-27 07:28:22 -06:00
|
|
|
|
.Nm
|
2009-06-18 14:24:54 -06:00
|
|
|
|
windows can be moved with the use of the keyboard through
|
|
|
|
|
.Cm vi Ns -like
|
|
|
|
|
bindings.
|
|
|
|
|
.Ic M-[hjkl]
|
|
|
|
|
moves the current window a small amount, while
|
|
|
|
|
.Ic MS-[hjkl]
|
|
|
|
|
moves the current window a larger amount.
|
|
|
|
|
For example, to move the current window to the left a small amount, press
|
|
|
|
|
.Ic M-h .
|
|
|
|
|
To move the current window down by a larger amount, press
|
|
|
|
|
.Ic MS-j .
|
2007-11-07 14:58:03 -07:00
|
|
|
|
.Pp
|
2009-06-18 14:24:54 -06:00
|
|
|
|
Similarly, windows may be resized with the same key bindings with the addition
|
2007-11-16 16:04:56 -07:00
|
|
|
|
of the Control key.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.Ic CM-[hjkl]
|
|
|
|
|
resizes the window a small amount and
|
|
|
|
|
.Ic CMS-[hjkl]
|
2007-11-07 14:58:03 -07:00
|
|
|
|
resizes by a larger increment.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Sh SEARCH
|
2007-06-29 15:10:37 -06: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 11:58:48 -06:00
|
|
|
|
.Nm
|
|
|
|
|
keeps a history of the 5 previous titles of a window.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
When searching, the leftmost character of the result list may show a
|
|
|
|
|
flag:
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Bl -tag -width 10n -offset -indent -compact
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It !
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The window is the currently focused window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It &
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The window is hidden.
|
|
|
|
|
.El
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2009-06-18 14:24:54 -06:00
|
|
|
|
The following key bindings may be used to navigate the result list:
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2008-04-15 12:33:13 -06:00
|
|
|
|
.Bl -tag -width "[Down] or C-s or M-j" -offset indent -compact
|
|
|
|
|
.It Ic [Down], C-s No or Ic M-j
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select the next window in the list.
|
2008-04-15 12:33:13 -06:00
|
|
|
|
.It Ic [Up], C-r No or Ic M-k
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select the previous window in the list.
|
2008-04-15 12:33:13 -06:00
|
|
|
|
.It Ic [Backspace] No or Ic C-h
|
|
|
|
|
Backspace.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-u
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Clear the input.
|
2008-06-05 08:29:01 -06:00
|
|
|
|
.It Ic [Return]
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Focus the selected window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic [Esc]
|
2008-04-15 12:33:13 -06:00
|
|
|
|
Cancel.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-a
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Whenever there are no matching windows, list every window.
|
|
|
|
|
.El
|
|
|
|
|
.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.
|
|
|
|
|
Currently, the only operation that is supported is to hide and unhide
|
2007-05-10 15:28:23 -06:00
|
|
|
|
the grouped windows.
|
|
|
|
|
Together with the
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.Pa sticky
|
2007-04-27 11:58:48 -06:00
|
|
|
|
option, this can be used to emulate virtual desktops.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2008-03-22 09:09:45 -06: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 11:58:48 -06:00
|
|
|
|
.Sh MENUS
|
|
|
|
|
Menus are recalled by clicking the mouse on the root window:
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Bl -tag -width 10n -offset -indent -compact
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M1
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Show list of currently hidden windows.
|
|
|
|
|
Clicking on an item will unhide that window.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M2
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Show list of currently defined groups.
|
|
|
|
|
Clicking on an item will hide/unhide that group.
|
2009-06-18 14:24:54 -06:00
|
|
|
|
.It Ic M3
|
2007-06-29 15:10:37 -06:00
|
|
|
|
Show list of applications as defined in
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.Pa ~/.cwmrc .
|
2007-06-29 15:10:37 -06:00
|
|
|
|
Clicking on an item will spawn that application.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.El
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Sh ENVIRONMENT
|
|
|
|
|
.Bl -tag -width "DISPLAYXXX"
|
|
|
|
|
.It DISPLAY
|
|
|
|
|
.Nm
|
|
|
|
|
starts on this display unless the
|
|
|
|
|
.Fl d
|
|
|
|
|
option is given.
|
|
|
|
|
.El
|
|
|
|
|
.Sh FILES
|
|
|
|
|
.Bl -tag -width Ds
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.It Pa ~/.cwmrc
|
2008-09-22 08:37:12 -06:00
|
|
|
|
.El
|
2008-03-23 09:09:21 -06:00
|
|
|
|
.Sh SEE ALSO
|
|
|
|
|
.Xr cwmrc 5
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Sh AUTHORS
|
|
|
|
|
.An -nosplit
|
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm
|
2008-01-16 09:14:55 -07:00
|
|
|
|
was developed by
|
2007-06-29 15:10:37 -06: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
|
|
|
|
|
.An Antti Nyk<EFBFBD>nen Aq aon@iki.fi .
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Ideas, discussion with many others.
|
2008-01-16 09:14:55 -07: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 .
|