Table 14-1. Defining keybouard shortcuts and mouse bindings
Command | Description | Example |
---|---|---|
Key <key> <context> <modif> <fn> | Binds a key to a function | Key F11 A SCM WindowList |
Mouse <button> <context> <modif> <fn> | Binds a mouse button to a function | Mouse 1 R N Menu "Root" Nop |
Mouse and key bindings take a context and modifiers as arguments. Contexts can be combined (for example, IW is for Icon and Window) and so can modifiers.
Recognized contexts are :
<n> for a title bar button. Counting starts from the outside, alternating between left and right. So 1 is the first button on the left, 2 the first button on the right, 3 the second button on the left, etc.
R for the root window
W for an application window
T for a window title bar
S for a window side, top, or bottom bar
F for a window frame (the corners)
I for an Icon window
A is for any context except for title-bar buttons
Recognized modifiers :
S for Shift
M for Meta
C for Control
N for no modifier
A for any or no modifier