Added note on ChangeWorkspace

This commit is contained in:
Jim Ramsay 2009-02-20 11:37:23 -05:00
parent f68ff84bd1
commit ce1fb1cf8e
2 changed files with 19 additions and 5 deletions

View file

@ -90,10 +90,13 @@ name is *Mouse*'n' where 'n' is the number of the mouse button. For example,
events, in normal configurations. *xev(1)* can also be used to tell the button events, in normal configurations. *xev(1)* can also be used to tell the button
number. number.
////////////////
There are some special "keys" that let you bind events to non-keyboard events::: There are some special "keys" that let you bind events to non-keyboard events:::
*ChangeWorkspace*;; *ChangeWorkspace*;;
Fires when the workspace changes Fires when the workspace changes. This can be used to change backgrounds or
do anything else you like when you switch to a new workspace. See the
*EXAMPLES* below for one idea.
////////////////
TODO: Advanced users only? TODO: Advanced users only?
*FocusIn* / *FocusOut*;; *FocusIn* / *FocusOut*;;
Fires when the focus is given to or removed from a window. It may be Fires when the focus is given to or removed from a window. It may be
@ -103,8 +106,8 @@ TODO: Advanced users only?
Fires when the mouse cursor enters or leaves a specific area of the Fires when the mouse cursor enters or leaves a specific area of the
screen. It may be useful to combine this with the 'On*' modifiers screen. It may be useful to combine this with the 'On*' modifiers
detailed above and/or the 'If' command. detailed above and/or the 'If' command.
//////////////// ////////////////
CHAINING CHAINING
-------- --------
Key bindings can be chained in a fashion similar to Emacs key bindings using the Key bindings can be chained in a fashion similar to Emacs key bindings using the

View file

@ -1,12 +1,12 @@
.\" Title: fluxbox-keys .\" Title: fluxbox-keys
.\" Author: [see the "AUTHORS" section] .\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
.\" Date: 02/19/2009 .\" Date: 02/20/2009
.\" Manual: Fluxbox Manual .\" Manual: Fluxbox Manual
.\" Source: fluxbox-keys.txt 1.1.2 .\" Source: fluxbox-keys.txt 1.1.2
.\" Language: English .\" Language: English
.\" .\"
.TH "FLUXBOX\-KEYS" "5" "02/19/2009" "fluxbox\-keys\&.txt 1\&.1\&.2" "Fluxbox Manual" .TH "FLUXBOX\-KEYS" "5" "02/20/2009" "fluxbox\-keys\&.txt 1\&.1\&.2" "Fluxbox Manual"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * (re)Define some macros .\" * (re)Define some macros
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
@ -239,6 +239,17 @@ You may specify a key by its key name (for example, \fBa\fR or \fBspace\fR) or b
If you don\'t know the name of a key, you can run \fBxev(1)\fR in a terminal, push the key, and see the name in the output\&. If you have some "special" keys that do not produce a key name in the output of \fBxev(1)\fR, you can just use the keycode (NOT the keysym!) in your keys file\&. If you don\'t know the name of a key, you can run \fBxev(1)\fR in a terminal, push the key, and see the name in the output\&. If you have some "special" keys that do not produce a key name in the output of \fBxev(1)\fR, you can just use the keycode (NOT the keysym!) in your keys file\&.
.sp .sp
Commands can also be bound to mouse button presses, for which the proper "key" name is \fBMouse\fR\fIn\fR where \fIn\fR is the number of the mouse button\&. For example, \fBMouse1\fR is the primary button, and \fBMouse4\fR / \fBMouse5\fR are the scroll wheel events, in normal configurations\&. \fBxev(1)\fR can also be used to tell the button number\&. Commands can also be bound to mouse button presses, for which the proper "key" name is \fBMouse\fR\fIn\fR where \fIn\fR is the number of the mouse button\&. For example, \fBMouse1\fR is the primary button, and \fBMouse4\fR / \fBMouse5\fR are the scroll wheel events, in normal configurations\&. \fBxev(1)\fR can also be used to tell the button number\&.
.PP
There are some special "keys" that let you bind events to non\-keyboard events:
.RS 4
.PP
\fBChangeWorkspace\fR
.RS 4
Fires when the workspace changes\&. This can be used to change backgrounds or do anything else you like when you switch to a new workspace\&. See the
\fBEXAMPLES\fR
below for one idea\&.
.RE
.RE
.SH "CHAINING" .SH "CHAINING"
.sp .sp
Key bindings can be chained in a fashion similar to Emacs key bindings using the syntax: Key bindings can be chained in a fashion similar to Emacs key bindings using the syntax: