From d9f38134bee3a61964358b2a7f3a136264ec1c4a Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 31 May 2015 23:07:36 +0000 Subject: a start to cleaning: - no reason for pointer movement and window movement and resizing sections that just describe default key bindings - key bindings are for all search and exec dialogs, not just for windows - adding missing bindings - normalize and wordsmith - re-order sections according to mdoc(7) feedback and ok from jmc@ --- cwmrc.5 | 130 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 65 insertions(+), 65 deletions(-) (limited to 'cwmrc.5') diff --git a/cwmrc.5 b/cwmrc.5 index a0b39d3..093060b 100644 --- a/cwmrc.5 +++ b/cwmrc.5 @@ -72,14 +72,14 @@ The modifier keys come first, followed by a The following modifiers are recognised: .Pp .Bl -tag -width Ds -offset indent -compact -.It C -The Control key. -.It M -The Meta key. -.It S -The Shift key. -.It 4 -The Mod4 key (normally the windows key). +.It Ic C +Control key. +.It Ic M +Meta key. +.It Ic S +Shift key. +.It Ic 4 +Mod4 (windows) key. .El .Pp The @@ -186,14 +186,14 @@ The modifier keys come first, followed by a The following modifiers are recognised: .Pp .Bl -tag -width Ds -offset indent -compact -.It C -The Control key. -.It M -The Meta key. -.It S -The Shift key. -.It 4 -The Mod4 key (normally the windows key). +.It Ic C +Control key. +.It Ic M +Meta key. +.It Ic S +Shift key. +.It Ic 4 +Mod4 (windows) key. .El .Pp The @@ -201,15 +201,15 @@ The should be followed by number: .Pp .Bl -tag -width Ds -offset indent -compact -.It 1 +.It Ic 1 Left mouse button. -.It 2 +.It Ic 2 Middle mouse button. -.It 3 +.It Ic 3 Right mouse button. -.It 4 +.It Ic 4 Scroll up mouse button. -.It 5 +.It Ic 5 Scroll down mouse button. .El .Pp @@ -235,48 +235,6 @@ 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" - -# Turn on sticky-group mode -sticky yes - -# 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 - -# Key bindings -bind CM-r label -bind CS-Return "xterm -e top" -bind 4-o unmap -bind CM-equal unmap -bind CMS-equal unmap -bind C4-equal vmaximize -bind C4S-equal hmaximize -bind M-1 grouponly1 -bind M-2 grouponly2 -bind M-3 grouponly3 -bind MS-1 movetogroup1 -bind MS-2 movetogroup2 -bind MS-3 movetogroup3 - -# Mouse bindings -mousebind M-2 window_lower -mousebind M-3 window_resize -.Ed .Sh BIND COMMAND LIST .Bl -tag -width 18n -compact .It restart @@ -482,10 +440,52 @@ Launch command list. .Sh FILES .Bl -tag -width "~/.cwmrcXXX" -compact .It Pa ~/.cwmrc -default +Default .Xr cwm 1 -configuration file +configuration file. .El +.Sh EXAMPLES +.Bd -literal +# Set default Xft(3) font +fontname "sans-serif:pixelsize=14:bold" + +# Turn on sticky-group mode +sticky yes + +# 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 + +# Key bindings +bind CM-r label +bind CS-Return "xterm -e top" +bind 4-o unmap +bind CM-equal unmap +bind CMS-equal unmap +bind C4-equal vmaximize +bind C4S-equal hmaximize +bind M-1 grouponly1 +bind M-2 grouponly2 +bind M-3 grouponly3 +bind MS-1 movetogroup1 +bind MS-2 movetogroup2 +bind MS-3 movetogroup3 + +# Mouse bindings +mousebind M-2 window_lower +mousebind M-3 window_resize +.Ed .Sh SEE ALSO .Xr cwm 1 .Sh HISTORY -- cgit 1.4.1