2009-01-21 08:04:38 -07:00
|
|
|
.\" $OpenBSD: cwmrc.5,v 1.18 2009/01/21 15:04:38 todd Exp $
|
2008-03-23 09:09:21 -06: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.
|
|
|
|
.\"
|
|
|
|
.\" The following requests are required for all man pages.
|
2009-01-21 08:04:38 -07:00
|
|
|
.Dd $Mdocdate: January 21 2009 $
|
2008-04-27 19:27:46 -06:00
|
|
|
.Dt CWMRC 5
|
2008-03-23 09:09:21 -06:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cwmrc
|
|
|
|
.Nd calm window manager configuration file
|
|
|
|
.Sh DESCRIPTION
|
2008-05-18 13:33:36 -06:00
|
|
|
This manual page describes the
|
2008-03-23 09:09:21 -06:00
|
|
|
.Xr cwm 1
|
2008-05-18 13:33:36 -06:00
|
|
|
configuration file.
|
2008-03-23 09:09:21 -06:00
|
|
|
The following options are accepted in the configuration file:
|
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
.Bl -tag -width Ds -compact
|
2008-03-23 09:09:21 -06:00
|
|
|
.It Ic autogroup Ar group Dq windowclass
|
|
|
|
.It Ic autogroup Ar group Dq windowclass,windowname
|
2008-05-18 13:33:36 -06:00
|
|
|
Control automatic window grouping, based on the class and/or name
|
|
|
|
properties, where
|
|
|
|
.Ar group
|
2008-05-19 11:13:55 -06:00
|
|
|
is a number between 0 and 9.
|
|
|
|
If the group number is 0, then the window will not be grouped; this to
|
|
|
|
allow for
|
|
|
|
.Dq sticky
|
|
|
|
windows in sticky group mode.
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
The class and name of a window may be obtained using
|
|
|
|
.Xr xprop 1 .
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pp
|
|
|
|
.It Ic bind Ar keys Ar command
|
2008-05-18 13:33:36 -06:00
|
|
|
Cause the creation of a keybinding, or replacement of a default
|
|
|
|
keybinding.
|
|
|
|
The modifier keys come first, followed by a
|
|
|
|
.Sq - .
|
|
|
|
.Pp
|
2008-03-23 09:09:21 -06:00
|
|
|
The following modifiers are recognised:
|
2008-05-18 13:33:36 -06:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It C
|
2008-03-23 09:09:21 -06:00
|
|
|
The Control key.
|
2008-05-18 13:33:36 -06:00
|
|
|
.It M
|
2008-03-23 09:09:21 -06:00
|
|
|
The Meta key.
|
2008-05-18 13:33:36 -06:00
|
|
|
.It S
|
2008-03-23 09:09:21 -06:00
|
|
|
The Shift key.
|
2008-05-18 13:33:36 -06:00
|
|
|
.It 4
|
2008-03-23 09:09:21 -06:00
|
|
|
The Mod4 key (normally the windows key).
|
|
|
|
.El
|
2008-05-18 13:33:36 -06:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Sq -
|
|
|
|
should be followed by either a keysym name, taken from
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pa /usr/X11R6/include/X11/keysymdef.h ,
|
2008-05-18 13:33:36 -06:00
|
|
|
or a numerical keycode value enclosed in
|
|
|
|
.Dq [] .
|
|
|
|
The
|
|
|
|
.Ar command
|
2008-06-13 15:22:34 -06:00
|
|
|
may either be one from the
|
|
|
|
.Sx BIND COMMAND LIST
|
|
|
|
(see below) or the command line that is to be executed.
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
A special
|
|
|
|
.Ar command
|
|
|
|
keyword
|
|
|
|
.Dq unmap
|
|
|
|
can be used to remove the named keybinding.
|
|
|
|
This can be used to remove a binding which conflicts with an
|
|
|
|
application.
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pp
|
2009-01-21 08:04:38 -07:00
|
|
|
.It Ic borderwidth Ar pixels
|
|
|
|
Set the window border width to
|
|
|
|
.Ar pixels .
|
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
.It Ic command Ar name Ar path
|
|
|
|
Every
|
|
|
|
.Ar name
|
|
|
|
entry is shown in the application menu.
|
|
|
|
When selected, the defined
|
|
|
|
.Ar path
|
|
|
|
is executed with
|
|
|
|
.Xr execve 2 .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar name
|
|
|
|
entries
|
|
|
|
.Nm term
|
|
|
|
and
|
|
|
|
.Nm lock
|
|
|
|
have a special meaning.
|
|
|
|
They point to the terminal and screen locking programs specified by
|
|
|
|
keybindings.
|
|
|
|
The defaults are
|
|
|
|
.Xr xterm 1
|
|
|
|
and
|
|
|
|
.Xr xlock 1 ,
|
|
|
|
respectively.
|
|
|
|
.Pp
|
|
|
|
.It Ic fontname Ar font
|
|
|
|
Change the default
|
|
|
|
.Ar font
|
|
|
|
for
|
|
|
|
.Xr Xft 3 .
|
2008-03-23 09:09:21 -06:00
|
|
|
.Pp
|
2008-04-15 12:46:58 -06:00
|
|
|
.It Ic gap Ar top bottom left right
|
2008-05-18 13:33:36 -06:00
|
|
|
Define a
|
|
|
|
.Dq gap
|
|
|
|
in pixels at the edge of the screen, so that when a
|
|
|
|
window is maximized it will not overlap this area.
|
|
|
|
This
|
|
|
|
.Dq gap
|
|
|
|
can be used for applications such as
|
2008-04-15 12:46:58 -06:00
|
|
|
.Xr xclock 1 ,
|
2008-05-18 13:33:36 -06:00
|
|
|
where the user may wish to remain visible.
|
2008-04-15 12:46:58 -06:00
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
.It Ic ignore Ar windowname
|
2008-09-22 08:35:16 -06:00
|
|
|
Ignore windows with the name
|
|
|
|
.Ar windowname
|
|
|
|
when drawing borders and cycling through windows.
|
2008-05-18 13:33:36 -06:00
|
|
|
.Pp
|
2008-06-14 15:48:54 -06:00
|
|
|
.It Ic mousebind Ar buttons Ar command
|
|
|
|
Cause the creation of a mouse binding, or replacement of a default
|
|
|
|
mouse binding.
|
|
|
|
The modifier keys come first, followed by a
|
|
|
|
.Sq - .
|
|
|
|
.Pb
|
|
|
|
The following modifiers are recognised:
|
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.It C
|
|
|
|
The Control key.
|
|
|
|
.It M
|
|
|
|
The Meta key.
|
2008-06-25 16:38:36 -06:00
|
|
|
.It S
|
|
|
|
The Shift key.
|
2008-06-25 16:40:27 -06:00
|
|
|
.It 4
|
|
|
|
The Mod4 key (normally the windows key).
|
2008-06-14 15:48:54 -06:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Sq -
|
|
|
|
should be followed by number:
|
|
|
|
.Pb
|
|
|
|
.Bl -tag -width Ds -offset indent -compact
|
|
|
|
.Pp
|
|
|
|
.It 1
|
|
|
|
Left mouse button.
|
|
|
|
.It 2
|
|
|
|
Right mouse button.
|
|
|
|
.It 3
|
|
|
|
Middle mouse button.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar command
|
|
|
|
may be taken from the
|
|
|
|
.Sx MOUSEBIND COMMAND LIST
|
|
|
|
(see below).
|
|
|
|
.Pp
|
2008-05-18 13:33:36 -06:00
|
|
|
.It Ic sticky Ic yes Ns \&| Ns Ic no
|
|
|
|
Toggle sticky group mode.
|
|
|
|
The default behavior for new windows is to not assign any group.
|
|
|
|
By enabling sticky group mode,
|
|
|
|
.Xr cwm 1
|
|
|
|
will assign new windows to the currently selected group.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLE CONFIGURATION
|
|
|
|
.Bd -literal
|
|
|
|
# Set default Xft(3) font
|
|
|
|
fontname "sans-serif:pixelsize=14:bold"
|
|
|
|
|
2008-05-18 13:57:43 -06:00
|
|
|
# Turn on sticky-group mode
|
|
|
|
sticky yes
|
2008-05-18 13:33:36 -06:00
|
|
|
|
|
|
|
# Any entry here is shown in the application menu
|
|
|
|
command firefox firefox
|
|
|
|
command xmms xmms
|
|
|
|
command top "xterm -e top"
|
|
|
|
|
|
|
|
# Autogroup definitions
|
|
|
|
autogroup 3 "aterm,XTerm"
|
|
|
|
autogroup 3 "xterm,XTerm"
|
|
|
|
|
|
|
|
# Ignore programs by that name by not drawing borders around them.
|
|
|
|
ignore XMMS
|
|
|
|
ignore xwi
|
|
|
|
ignore xapm
|
|
|
|
ignore xclock
|
|
|
|
|
|
|
|
# Keybindings
|
2008-06-14 15:48:54 -06:00
|
|
|
bind CM-r label
|
2008-05-18 13:33:36 -06:00
|
|
|
bind CS-Return "xterm -e top"
|
2008-06-14 15:48:54 -06:00
|
|
|
bind 4-o unmap
|
|
|
|
|
|
|
|
# Mousebindings
|
|
|
|
mousebind M-2 window_lower
|
|
|
|
mousebind M-3 window_resize
|
2008-05-18 13:33:36 -06:00
|
|
|
.Ed
|
2008-06-13 15:22:34 -06:00
|
|
|
.Sh BIND COMMAND LIST
|
|
|
|
.Bl -tag -width 18n -compact
|
2008-07-11 09:18:29 -06:00
|
|
|
.It reload
|
2008-07-11 09:42:29 -06:00
|
|
|
Reload configuration.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It quit
|
2008-07-11 09:42:29 -06:00
|
|
|
Quit
|
|
|
|
.Xr cwm 1 .
|
2008-06-13 15:22:34 -06:00
|
|
|
.It terminal
|
2008-07-11 09:42:29 -06:00
|
|
|
Spawn a new terminal.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It lock
|
2008-07-11 09:42:29 -06:00
|
|
|
Lock the screen.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It search
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch window search menu.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It menusearch
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch application search menu.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It exec
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch
|
2008-06-13 15:22:34 -06:00
|
|
|
.Dq exec program
|
2008-07-11 09:42:29 -06:00
|
|
|
menu.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It exec_wm
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch
|
2008-06-13 15:22:34 -06:00
|
|
|
.Dq exec WindowManager
|
2008-07-11 09:42:29 -06:00
|
|
|
menu.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It ssh
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch
|
2008-06-13 15:22:34 -06:00
|
|
|
.Dq ssh
|
2008-07-11 09:42:29 -06:00
|
|
|
menu.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It group[n]
|
2008-07-11 09:42:29 -06:00
|
|
|
Select group n, where n is 1-9.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It nogroup
|
2008-07-11 09:42:29 -06:00
|
|
|
Select all groups.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It grouptoggle
|
2008-07-11 09:42:29 -06:00
|
|
|
Toggle group membership of current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It cyclegroup
|
2008-07-11 09:42:29 -06:00
|
|
|
Forward cycle through groups.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It rcyclegroup
|
2008-07-11 09:42:29 -06:00
|
|
|
Reverse cycle through groups.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It cycle
|
2008-07-11 09:42:29 -06:00
|
|
|
Forward cycle through windows.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It rcycle
|
2008-07-11 09:42:29 -06:00
|
|
|
Reverse cycle through windows.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It delete
|
2008-07-11 09:42:29 -06:00
|
|
|
Delete current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It hide
|
2008-07-11 09:42:29 -06:00
|
|
|
Hide current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It lower
|
2008-07-11 09:42:29 -06:00
|
|
|
Lower current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It raise
|
2008-07-11 09:42:29 -06:00
|
|
|
Raise current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It label
|
2008-07-11 09:42:29 -06:00
|
|
|
Label current window.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It maximize
|
2008-07-11 09:42:29 -06:00
|
|
|
Maximize current window full-screen.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It vmaximize
|
2008-07-11 09:42:29 -06:00
|
|
|
Maximize current window vertically.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It moveup
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 1 pixel up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It movedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 1 pixel down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It moveright
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 1 pixel right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It moveleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 1 pixel left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigmoveup
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 10 pixels up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigmovedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 10 pixels down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigmoveright
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 10 pixels right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigmoveleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Move window 10 pixels left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It resizeup
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 1 pixel up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It resizedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 1 pixel down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It resizeright
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 1 pixel right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It resizeleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 1 pixel left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigresizeup
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 10 pixels up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigresizedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 10 pixels down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigresizeright
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 10 pixels right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigresizeleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize window 10 pixels left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It ptrmoveup
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 1 pixel up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It ptrmovedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 1 pixel down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It ptrmoveright
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 1 pixel right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It ptrmoveleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 1 pixel left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigptrmoveup
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 10 pixels up.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigptrmovedown
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 10 pixels down.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigptrmoveright
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 10 pixels right.
|
2008-06-13 15:22:34 -06:00
|
|
|
.It bigptrmoveleft
|
2008-07-11 09:42:29 -06:00
|
|
|
Move pointer 10 pixels left.
|
2008-06-13 15:22:34 -06:00
|
|
|
.El
|
2008-06-14 15:48:54 -06:00
|
|
|
.Sh MOUSEBIND COMMAND LIST
|
|
|
|
.Bl -tag -width 18n -compact
|
|
|
|
.It window_move
|
2008-07-11 09:42:29 -06:00
|
|
|
Move current window.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It window_resize
|
2008-07-11 09:42:29 -06:00
|
|
|
Resize current window.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It window_lower
|
2008-07-11 09:42:29 -06:00
|
|
|
Lower current window.
|
2008-06-25 16:44:42 -06:00
|
|
|
.It window_hide
|
2008-07-11 09:42:29 -06:00
|
|
|
Hide current window.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It window_grouptoggle
|
2008-07-11 09:42:29 -06:00
|
|
|
Toggle group membership of current window.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It menu_group
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch group list.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It menu_unhide
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch group list.
|
2008-06-14 15:48:54 -06:00
|
|
|
.It menu_cmd
|
2008-07-11 09:42:29 -06:00
|
|
|
Launch command list.
|
2008-06-14 15:48:54 -06:00
|
|
|
.El
|
2008-05-18 13:33:36 -06:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width "~/.cwmrcXXX" -compact
|
|
|
|
.It Pa ~/.cwmrc
|
|
|
|
default
|
|
|
|
.Xr cwm 1
|
|
|
|
configuration file
|
2008-03-23 09:09:21 -06:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cwm 1
|
|
|
|
.Sh HISTORY
|
2008-04-27 19:27:46 -06:00
|
|
|
The
|
2008-03-23 09:09:21 -06:00
|
|
|
.Nm
|
2008-04-27 19:27:46 -06:00
|
|
|
file format first appeared in
|
2008-03-23 09:09:21 -06:00
|
|
|
.Ox 4.4 .
|