summary refs log tree commit diff
path: root/cwmrc.5
diff options
context:
space:
mode:
authorokan <okan>2015-05-31 23:07:36 +0000
committerokan <okan>2015-05-31 23:07:36 +0000
commitd9f38134bee3a61964358b2a7f3a136264ec1c4a (patch)
treeead8989808d1bcf893839d3c535062e293a351a7 /cwmrc.5
parentb1c2046efd856c4d32ba1a50a83e8b651f1769bd (diff)
downloadcwm-d9f38134bee3a61964358b2a7f3a136264ec1c4a.tar.gz
cwm-d9f38134bee3a61964358b2a7f3a136264ec1c4a.tar.xz
cwm-d9f38134bee3a61964358b2a7f3a136264ec1c4a.zip
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@
Diffstat (limited to 'cwmrc.5')
-rw-r--r--cwmrc.5130
1 files changed, 65 insertions, 65 deletions
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