
#                    /*** fvwm2-ade:  bindings ***/

#        /*** This section defines key and mouse bindings. ***/

#/*********************************************************************
# * Mouse button 1 in the root window brings up menu "Main" on the    *
# * first click, "Window-Ops2" on the second click.  Mouse button 2   *
# * in the root window brings up menu "Window-Ops2".  Mouse button 3  *
# * in the root window brings up the "WindowList" function.  See      *
# * "menus" for menu definitions.                                     *
# *********************************************************************/

Mouse 1		R	A	Menu Main "Menu Window-Ops2"
Mouse 2		R	A	Menu Window-Ops2
Mouse 3		R	A	WindowList

#/*********************************************************************
# * Any mouse button on the MENUBUTTON (see "titlebar.m4") brings up  *
# * the menu "Window-Ops" (see "menus").                              *
# *********************************************************************/

Mouse 0		MENUBUTTON	A	Menu Window-Ops

#/*********************************************************************
# * Clicking on the MAXIMIZEBUTTON (see "titlebar.m4"): mouse button  *
# * 1 launches the "Maximize-Button1" function (see "functions"),     *
# * button 2 maximizes the window horizontally, and button 3          *
# * maximizes it both horizontally and vertically.  On a maximized    *
# * window, any click on the MAXIMIZEBUTTON brings the window back to *
# * normal.                                                           *
# *********************************************************************/

Mouse 1		MAXIBUTTON	A	Maximize-Button1
Mouse 2		MAXIBUTTON	A	Maximize 100 0
Mouse 3		MAXIBUTTON	A	Maximize 100 100

#/*********************************************************************
# * Clicking on the ICONIFYBUTTON (see "titlebar.m4"), mouse button 1 *
# * iconifies the window, and mouse button 3 closes it.               *
# *********************************************************************/

Mouse 1		ICONBUTTON	A	Iconify
Mouse 3		ICONBUTTON	A	Close

Mouse 1		KILLBUTTON	A	Close
Mouse 2		KILLBUTTON	A	Destroy
Mouse 3		KILLBUTTON	A	Destroy

#/*********************************************************************
# * Any mouse button over an icon will launch the "Move-or-Iconify"   *
# * function (see "functions").                                       *
# *********************************************************************/

Mouse 0		I	A	Move-or-Iconify

#/*********************************************************************
# * Mouse button 1 over the corners or the edge of a window launches  *
# * the "Resize-or-Raise" function (see "functions").  Mouse button 1 *
# * over the title bar launches the "Move-or-Raise" function (see     *
# * "functions").                                                     *
# *********************************************************************/

Mouse 1		FS	A	Resize-or-Raise
Mouse 1		T	A	Move-or-Raise

#/*********************************************************************
# * Mouse button 2 over the corners, edges, or title bar of a window  *
# * launches the "Window-Ops" menu (see "menus").                     *
# *********************************************************************/

Mouse 2		FST	A	Menu Window-Ops Nop

#/*********************************************************************
# * Mouse button 3 over the corners, edges, or title bar of a window  *
# * will invoke the "RaiseLower" function, toggling the window        *
# * between raised and lowered states.                                *
# *********************************************************************/

Mouse 3		FST	A	RaiseLower

#/*********************************************************************
# * If the SHIFT and CONTROL keys are held down, the arrow keys can   *
# * be used to move the mouse cursor, 1% of the width or height of    *
# * the screen (whichever is applicable to the motion) per key-press. *
# *********************************************************************/

Key Left	A	SC	CursorMove -1 +0
Key Right	A	SC	CursorMove +1 +0
Key Up		A	SC	CursorMove +0 -1
Key Down	A	SC	CursorMove +0 +1

#/*********************************************************************
# * If the SHIFT and META (ALT) keys are held down, the arrow keys    *
# * can be used to move the mouse cursor, 10% of the width or height  *
# * of the screen per key-press.                                      *
# *********************************************************************/

Key Left	A	SM	CursorMove -10 +0
Key Right	A	SM	CursorMove +10 +0
Key Up		A	SM	CursorMove +0 -10
Key Down	A	SM	CursorMove +0 +10

#/*********************************************************************
# * If the SHIFT and CONTROL keys are held down, pressing keys 1      *
# * through 8 on the keyboard will launch the indicated menus and     *
# * functions.  These can be useful if your mouse gives out on you.   *
# *********************************************************************/

Key 1		A	SC	Menu Main
Key 2		A	SC	Menu Window-Ops2
Key 3		A	SC	WindowList 
Key 4		A	SC	Iconify
Key 5		A	SC	Move
Key 6		A	SC	Resize
Key 7		A	SC	Next [*] focus
Key 8		A	SC	Prev [*] focus