2008-01-11 09:06:44 -07:00
|
|
|
|
.\" $OpenBSD: cwm.1,v 1.18 2008/01/11 16:06:44 oga Exp $
|
|
|
|
|
.\"
|
|
|
|
|
.\" 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
|
|
|
|
.\"
|
|
|
|
|
.\" The following requests are required for all man pages.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Dd June 29, 2007
|
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
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Op Fl s
|
2007-05-10 11:23:49 -06:00
|
|
|
|
.Op Fl d Ar display
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Op Fl f Ar fontname
|
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
.Nm
|
2007-05-10 15:28:23 -06:00
|
|
|
|
is a window manager for X11.
|
|
|
|
|
It 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.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm
|
|
|
|
|
contains many new features which all concentrate on the efficiency and
|
2007-06-29 15:10:37 -06:00
|
|
|
|
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
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Control
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Meta (Alt on PCs)
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic S
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Shift
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M1
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Left mouse button
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M2
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Middle mouse button
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M3
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Right mouse button
|
|
|
|
|
.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.
|
|
|
|
|
Most of the actions are initiated via keybindings.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
The current keybindings are described below;
|
|
|
|
|
their functionality is described in more detail later.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Bl -tag -width "C-M-EscapeXXX" -offset indent -compact
|
|
|
|
|
.It Ic C-M-Enter
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Spawn a new terminal.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-Delete
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Lock the screen.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Enter
|
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.
|
2007-11-07 14:58:03 -07:00
|
|
|
|
.It Ic C-M-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.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-S-Tab
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Reverse cycle through currently visible windows.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-x
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Delete current window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-Escape
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Enter group edit mode.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-[n]
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select group n, where n is 1-9.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-0
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select all groups.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Right
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Switch to next group.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-Left
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Switch to previous group.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-f
|
2007-05-27 03:23:12 -06:00
|
|
|
|
Toggle full-screen size of window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-M-=
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Toggle vertical maximization of window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic M-?
|
|
|
|
|
Spawn
|
|
|
|
|
.Dq Exec program
|
|
|
|
|
dialog.
|
|
|
|
|
.It Ic M-.
|
|
|
|
|
Spawn
|
|
|
|
|
.Dq Ssh to
|
|
|
|
|
dialog.
|
|
|
|
|
This parses
|
|
|
|
|
.Pa $HOME/.ssh/known_hosts
|
|
|
|
|
to provide host auto-completion.
|
|
|
|
|
.Xr ssh 1
|
|
|
|
|
will be executed via the configured terminal emulator.
|
2007-11-28 09:35:52 -07:00
|
|
|
|
.It Ic CM-q
|
|
|
|
|
Spawn
|
|
|
|
|
.Dq Exec WindowManager
|
|
|
|
|
dialog; allows you to switch from
|
|
|
|
|
.Nm
|
|
|
|
|
to another window manager without restarting the X server.
|
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
|
|
|
|
|
.It M-M1
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Move a window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It C-M-M1
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Toggle a window's membership in the current group.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
A blue highlight indicates the window has been added to the group;
|
2007-05-10 15:28:23 -06:00
|
|
|
|
a red highlight indicates it has been removed.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It M-M2
|
|
|
|
|
Resize a window/select a window.
|
|
|
|
|
.It M-M3
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Lower a window.
|
|
|
|
|
.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
|
2007-05-10 11:23:49 -06:00
|
|
|
|
.It Fl d Ar display
|
|
|
|
|
Specify the display to use.
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.It Fl f Ar fontname
|
2007-06-29 15:10:37 -06:00
|
|
|
|
Makes the
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Xr Xft 3
|
|
|
|
|
font string
|
|
|
|
|
.Ar fontname
|
|
|
|
|
the default font.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Fl s
|
|
|
|
|
Set sticky group mode on.
|
|
|
|
|
The default behavior for new windows is to not assign any group.
|
|
|
|
|
This changes the default behavior to assigning the currrently selected
|
|
|
|
|
group to any newly created windows.
|
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.
|
|
|
|
|
C-[UP|DOWN|LEFT|RIGHT] moves the pointer a small amount, while
|
2007-11-16 16:04:56 -07:00
|
|
|
|
C-shift-[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,
|
|
|
|
|
press C-LEFT.
|
|
|
|
|
To move the pointer down by a larger amount, press C-shift-DOWN.
|
2007-11-07 14:58:03 -07:00
|
|
|
|
.Sh WINDOW MOVEMENT AND RESIZING
|
2007-06-27 07:28:22 -06:00
|
|
|
|
.Nm
|
|
|
|
|
windows can be moved with the use of the keyboard through Vi-like bindings.
|
|
|
|
|
M-[hjkl] moves the current window a small amount, while M-shift-[hjkl] moves
|
|
|
|
|
the current window a larger amount.
|
|
|
|
|
For example, to move the current window to the left a small amount, press M-h.
|
|
|
|
|
To move the current window down by a larger amount, press M-shift-j.
|
2007-11-07 14:58:03 -07:00
|
|
|
|
.Pp
|
|
|
|
|
Similarly, windows may be resized with the same keybindings with the addition
|
2007-11-16 16:04:56 -07:00
|
|
|
|
of the Control key.
|
|
|
|
|
C-M-[hjkl] resizes the window a small amount and C-M-shift-[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
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The following keybindings may be used to navigate the result list:
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Bl -tag -width "[Down] or C-sXXX" -offset indent -compact
|
|
|
|
|
.It Ic [Down] No or Ic C-s
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select the next window in the list.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic [Up] No or Ic C-r
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Select the previous window in the list.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic C-u
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Clear the input.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic [Enter]
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Focus the selected window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Ic [Esc]
|
2007-04-27 11:58:48 -06:00
|
|
|
|
Quit.
|
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
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Fl s
|
|
|
|
|
option, this can be used to emulate virtual desktops.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
To edit groups, enter the group edit mode, and select/unselect the
|
2007-05-10 15:28:23 -06:00
|
|
|
|
groups with the group selection mouse click.
|
|
|
|
|
A blue border will be shown on the currently selected windows.
|
|
|
|
|
The group selection keyboard shortcuts can also be used to change
|
|
|
|
|
which group to edit.
|
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
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It M1
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Show list of currently hidden windows.
|
|
|
|
|
Clicking on an item will unhide that window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It M2
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Show list of currently defined groups.
|
|
|
|
|
Clicking on an item will hide/unhide that group.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It M3
|
|
|
|
|
Show list of applications as defined in
|
|
|
|
|
.Pa ~/.calmwm .
|
|
|
|
|
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
|
|
|
|
|
.It Pa ~/.calmwm
|
2007-05-10 15:28:23 -06:00
|
|
|
|
Any directory entries here are shown in the application menu.
|
|
|
|
|
When it is selected, the image is executed with
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Xr execve 2 .
|
|
|
|
|
One use of this is to create symbolic links for your favorite
|
2007-06-29 15:10:37 -06:00
|
|
|
|
applications in this directory using
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Xr ln 1 .
|
2007-05-10 15:28:23 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The entries
|
|
|
|
|
.Nm term
|
2007-06-29 15:10:37 -06:00
|
|
|
|
and
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm lock
|
2007-06-29 15:10:37 -06:00
|
|
|
|
have a special meaning.
|
2007-05-10 15:28:23 -06:00
|
|
|
|
When they exist they point to the terminal program and screen locking
|
|
|
|
|
programs used by the keybindings specified above.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
The defaults for these are
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Xr xterm 1
|
2007-06-29 15:10:37 -06:00
|
|
|
|
and
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Xr xlock 1 ,
|
|
|
|
|
respectively.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.It Pa ~/.calmwm/.autogroup
|
2007-06-06 16:08:02 -06:00
|
|
|
|
Symlinks in this directory are read upon startup and control the
|
|
|
|
|
automatic grouping feature, which is based on the window name and class
|
|
|
|
|
properties.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
To obtain the name and class of a window, use
|
|
|
|
|
.Ql xprop WM_CLASS ,
|
2007-06-06 16:08:02 -06:00
|
|
|
|
then click on the window.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
The first quoted string is the window name; the second one is the
|
2007-06-06 16:08:02 -06:00
|
|
|
|
window class.
|
|
|
|
|
.Pp
|
|
|
|
|
The name of a link can be the window class, or the window class and name
|
|
|
|
|
separated by a comma.
|
|
|
|
|
The link target is a group name (one, two, \&..., nine).
|
|
|
|
|
For example, to make all windows in the
|
|
|
|
|
.Xr xterm 1
|
|
|
|
|
class go to the third group:
|
|
|
|
|
.Bd -literal -offset indent
|
2007-06-29 15:10:37 -06:00
|
|
|
|
$ ln -s three ~/.calmwm/.autogroup/XTerm
|
2007-06-06 16:08:02 -06:00
|
|
|
|
.Ed
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.It Pa ~/.calmwm/.settings
|
|
|
|
|
Files in this directory cause various configuration options to be
|
|
|
|
|
set or unset.
|
|
|
|
|
Currently the only setting availiable is whether or not sticky groups
|
|
|
|
|
are activated.
|
|
|
|
|
To activate sticky groups create a file in this directory with the name
|
|
|
|
|
``sticky''.
|
2007-11-08 06:03:22 -07:00
|
|
|
|
.It Pa ~/.calmwm/.ignore
|
2007-11-16 16:04:56 -07:00
|
|
|
|
Any files in this directory cause
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.Nm
|
|
|
|
|
to ignore programs by that name by not drawing borders around them.
|
2007-11-16 16:04:56 -07:00
|
|
|
|
For example the command
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
|
$ ln -s three ~/.calmwm/.ignore/xclock
|
|
|
|
|
.Ed
|
2007-11-16 16:04:56 -07:00
|
|
|
|
will cause any instances of
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.Xr xclock 1
|
|
|
|
|
to not have borders.
|
2007-11-08 06:03:22 -07:00
|
|
|
|
.It Pa ~/.calmwm/.keys
|
2007-11-07 15:00:26 -07:00
|
|
|
|
Symlinks in this directory cause the creation of keyboard shortcuts.
|
2007-11-19 15:18:16 -07:00
|
|
|
|
The default shortcuts will always be created. In case of conflict,
|
|
|
|
|
user-defined shortcuts take precidence.
|
2007-11-07 15:00:26 -07:00
|
|
|
|
The name of a link here is first the modifier keys, followed by a ``-''.
|
|
|
|
|
The following modifiers are recognised:
|
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
|
.It Pa C
|
|
|
|
|
The Control key.
|
|
|
|
|
.It Pa M
|
|
|
|
|
The Meta key.
|
|
|
|
|
.It Pa S
|
|
|
|
|
The Shift key.
|
|
|
|
|
.It Pa 2
|
|
|
|
|
The Mod2 key.
|
|
|
|
|
.It Pa 3
|
|
|
|
|
The Mod3 key.
|
|
|
|
|
.It Pa 4
|
|
|
|
|
The Mod4 key (normally the windows key).
|
|
|
|
|
.El
|
|
|
|
|
The ``-'' should be followed by either a keysym name, taken from
|
|
|
|
|
.Pa /usr/X11R6/include/X11/keysymdef.h ,
|
|
|
|
|
or a numerical keycode value enclosed in ``[]''.
|
2007-11-16 16:04:56 -07:00
|
|
|
|
The target of the link should be either the name of a task from the
|
2007-11-07 15:00:26 -07:00
|
|
|
|
``name_to_kbfunc''
|
2007-11-16 16:04:56 -07:00
|
|
|
|
structure in
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.Pa /usr/src/xenocara/app/cwm/conf.c ,
|
|
|
|
|
or, alternatively it should be the commandline that is wished to be executed.
|
2007-11-19 15:18:16 -07:00
|
|
|
|
A special case is the ``unmap'' keyword, which causes any bindings using the
|
|
|
|
|
named shortcut to be removed. This can be used to remove a binding which conflicts
|
|
|
|
|
with an application.
|
2007-11-07 15:00:26 -07:00
|
|
|
|
For example, to cause
|
2007-11-16 16:04:56 -07:00
|
|
|
|
.Ic C-M-r
|
2007-11-07 15:00:26 -07:00
|
|
|
|
to add a label to a window:
|
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
|
$ ln -s "label" ~/.calmwm/.keys/CM-r
|
|
|
|
|
.Ed
|
2007-11-16 16:04:56 -07:00
|
|
|
|
Launch an xterm running
|
2007-11-07 15:00:26 -07:00
|
|
|
|
.Xr top 1
|
|
|
|
|
with C-S-Enter:
|
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
|
$ ln -s "/usr/X11R6/bin/xterm -e top" ~/.calmwm/.keys/CS-Return
|
|
|
|
|
.Ed
|
2007-11-19 15:18:16 -07:00
|
|
|
|
Remove a keybinding for Mod4-o
|
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
|
$ ln -s "unmap" 4-o
|
|
|
|
|
.Ed
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.El
|
|
|
|
|
.Sh AUTHORS
|
|
|
|
|
.An -nosplit
|
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
.Nm
|
|
|
|
|
contains some code from 9wm.
|
2007-06-29 15:10:37 -06:00
|
|
|
|
.Pp
|
2007-04-27 11:58:48 -06:00
|
|
|
|
The
|
|
|
|
|
.Nm
|
2007-06-29 15:10:37 -06:00
|
|
|
|
software has been developed by
|
|
|
|
|
.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.
|
|
|
|
|
.\" .Sh HISTORY
|
|
|
|
|
.\".Aq marius@monkey.org .
|
|
|
|
|
.\" .Sh CAVEATS
|