summary refs log tree commit diff
path: root/cwmrc.5
diff options
context:
space:
mode:
authorokan <okan>2008-06-14 21:48:54 +0000
committerokan <okan>2008-06-14 21:48:54 +0000
commitbdcbbe7f53ce140df98f06a31dfe5cb19a40d708 (patch)
tree58a64d48acdfbaca8ec894b89909da5c6d8880f1 /cwmrc.5
parentb4ae492b7ba7bf40147c1ad4b8d036aa32053f58 (diff)
downloadcwm-bdcbbe7f53ce140df98f06a31dfe5cb19a40d708.tar.gz
cwm-bdcbbe7f53ce140df98f06a31dfe5cb19a40d708.tar.xz
cwm-bdcbbe7f53ce140df98f06a31dfe5cb19a40d708.zip
confable menu and window mouse bindings from rivo nurges (thanks!) with
some minor fixups, man page bits and knf.

ok oga@
Diffstat (limited to 'cwmrc.5')
-rw-r--r--cwmrc.561
1 files changed, 58 insertions, 3 deletions
diff --git a/cwmrc.5 b/cwmrc.5
index 7114431..10be912 100644
--- a/cwmrc.5
+++ b/cwmrc.5
@@ -15,7 +15,7 @@
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
 .\" The following requests are required for all man pages.
-.Dd $Mdocdate: May 19 2008 $
+.Dd $Mdocdate: June 13 2008 $
 .Dt CWMRC 5
 .Os
 .Sh NAME
@@ -130,6 +130,41 @@ where the user may wish to remain visible.
 Ignore drawing borders around a window with the name
 .Ar windowname .
 .Pp
+.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.
+.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
 .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.
@@ -161,9 +196,13 @@ ignore xapm
 ignore xclock
 
 # Keybindings
-bind CM-r	"label"
+bind CM-r	label
 bind CS-Return	"xterm -e top"
-bind 4-o	"unmap"
+bind 4-o	unmap
+
+# Mousebindings
+mousebind M-2	window_lower
+mousebind M-3	window_resize
 .Ed
 .Sh BIND COMMAND LIST
 .Bl -tag -width 18n -compact
@@ -267,6 +306,22 @@ move pointer 10 pixels right
 .It bigptrmoveleft
 move pointer 10 pixels left
 .El
+.Sh MOUSEBIND COMMAND LIST
+.Bl -tag -width 18n -compact
+.It window_move
+move a window
+.It window_resize
+resize a window
+.It window_lower
+lower a window
+.It window_grouptoggle
+.It menu_group
+launch group list
+.It menu_unhide
+launch group list
+.It menu_cmd
+launch command list
+.El
 .Sh FILES
 .Bl -tag -width "~/.cwmrcXXX" -compact
 .It Pa ~/.cwmrc