1 #key bindings {{{1
  2 #
  3 #definitions hint:
  4 #Key / Mouse Button Context Modifiers Function
  5 #Defines a mouse binding, or removes the binding if Function is
  6 #'-'. Button is the mouse button number. If Button is zero then any
  7 #button performs the specified function.
  8 
  9 #
 10 #Context   
 11 #   'R' for the root window, 
 12 #   'W' for an application window, 
 13 #   'D' for a desktop application , 
 14 #   'T' for a window title-bar, 
 15 #   'S' for a window side, top, or bottom bar, 
 16 #   '[', ']','-' and '_' for the left, right, top or bottom side only, 
 17 #   'F' for a window frame (the corners), 
 18 #   '<', '^', '>' and 'v' for the top left, top right, bottom right or bottom left corner, 
 19 #   'I' for an Icon window,
 20 #   '0' through '9' for title-bar buttons, 
 21 #   'A' is for any context. 
 22 #
 23 #Modifiers  'N' for no modifiers,  'C' for control,  'S' for shift,  'M' for Meta, 
 24 #           'L' for Caps-Lock, 'A' for any modifier,  1-5    mod1 through mod5
 25 #           modifier 'L' is ignored (see  IgnoreModifiers)
 26 IgnoreModifiers L25
 27 
 28 Key E A 1 Menu ExecuteMenu
 29 
 30 #workspace scrolling
 31 Mouse 4 R A Scroll 100 100
 32 Mouse 5 R A Scroll -100 -100
 33 
 34 DestroyFunc NextRaise
 35 AddToFunc NextRaise
 36 + I Next (CurrentPage !ButtonDocks) Focus
 37 + I Current (*) Raise
 38 + I Iconify false
 39 
 40 DestroyFunc PrevRaise
 41 AddToFunc PrevRaise
 42 + I Prev (CurrentPage !ButtonDocks) Focus
 43 + I Current (*) Raise
 44 + I Iconify false
 45 
 46 
 47 # 'borrowed' from Taviso's config :)
 48 DestroyModuleConfig FvwmProxy: *
 49 *FvwmProxy: ProxyMove true
 50 Key Escape  A   M   SendToModule FvwmProxy ShowToggle
 51 
 52 Key L A 1 Menu Window
 53 Key Space A 1 WindowList Root c c CurrentAtEnd
 54 Key Z A 1 Current (*) Iconify
 55 Key C A 1 Current (*) Close
 56 
 57 Key O A 1 Next (ButtonDocks) RaiseLower
 58 
 59 Key 8 A 1C CursorMove 0p -25p
 60 Key 7 A 1C CursorMove -2p -2p
 61 Key 4 A 1C CursorMove -25p 0p
 62 Key 1 A 1C CursorMove -2p +2p
 63 Key 2 A 1C CursorMove 0p +25p
 64 Key 3 A 1C CursorMove +2p +2p
 65 Key 6 A 1C CursorMove +25p 0p
 66 Key 9 A 1C CursorMove +2p -2p
 67 
 68 #Key 5 A 1C FakeClick  press 1 wait 50 release 1
 69 #Key 0 A 1C FakeClick  press 2 wait 50 release 1
 70 
 71 Key 1 A 1 GotoDesk 0 0 0 2
 72 Key 2 A 1 GotoDesk 0 1 0 2
 73 Key 3 A 1 GotoDesk 0 2 0 2
 74 Key W A 1 Scroll 100000 0
 75 
 76 Key K A 1 Current (*) Destroy
 77 Key F A 1 NextRaise
 78 Key B A 1 PrevRaise
 79 #I never used the Print key, so I use it for that
 80 Key "Print" A N NextRaise
 81 
 82 Key S A 1 WindowShade
 83 Key A A 1 Maximize
 84 Key Z A 1 Stick
 85 Key X A 1 Maximize 100 0
 86 Key G A 1 Maximize 0 100
 87 Key T A 1 ToggleDecor
 88 Key R A 1 Menu MenuFvwmRoot
 89 
 90 
 91 Key Right A 1 Move w+1 w+0
 92 Key Left A 1 Move w-1 w+0
 93 Key Up A 1 Move w+0 w-1
 94 Key Down A 1 Move w+0 w+1
 95 Key Right A 1C Resize br w+1 w+0
 96 Key Left A 1C Resize br  w-1 w+0
 97 Key Up A 1C Resize br w+0 w-1
 98 Key Down A 1C Resize br w+0 w+2
 99 #cleans the desktop (Iconify all)
100 Key D A 1 All (AcceptsFocus CurrentPage !Iconic !Shaded !ButtonDocks) Iconify
101 
102 #mouse bindings 
103 
104 #   for the root window:
105 Mouse 1 R       A       Menu MenuFvwmRoot
106 Mouse 2 R       A       WindowList
107 Mouse 3 R       A       Menu Window
108 
109 #   for the title bar buttons:
110 Mouse 1 1       A       Close
111 Mouse 3 1       A       Menu Window
112 Mouse 1 3       A       Stick
113 Mouse 1 5       A       WindowShade
114 #Mouse 1 8      A       ToggleDecor
115 #Mouse 1 8      A       WindowShade
116 Mouse 1 6       A       Current (*) Iconify
117 Mouse 1 4       A       Maximize
118 Mouse 2 4       A       Maximize 0 100
119 Mouse 3 4       A       Maximize 100 0
120 Mouse 1 2       A       Close
121 Mouse 3 2       A       Menu Window
122 
123 #   Icons
124 Mouse 1 I       A       Iconify
125 
126 # for other parts of the window/borders/icons:
127 Mouse 3 T       A       RaiseLower
128 Mouse 2 T       A       Close
129 
130 
131 # toggle decor function 
132 
133 DestroyFunc ToggleDecor
134 AddToFunc ToggleDecor
135 + I State 1 toggle
136 + I Current (State 1) WindowStyle !Borders, NoTitle
137 + I TestRc (NoMatch) WindowStyle Borders, Title
138 
139