#!/bin/sh sudo gainroot << E_O_F /usr/bin/matchboxwm stop /usr/local/bin/fvwm2 E_O_F
#!/bin/sh sudo gainroot << E_O_F killall fvwm2 /usr/bin/matchboxwm start E_O_F
ButtonStyle 1 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1 # Dot ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 # Big Box ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0 # small down triangle ButtonStyle 3 13 25x25@1 41x25@1 41x50@0 41x25@0 59x25@1 59x50@0 59x25@0 75x25@1 75x55@0 60x80@0 40x80@0 25x55@1 25x25@1 # Mouse #ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1 # Small up Triangle #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0 # Small down Triangle #ButtonStyle * 4 50x25@1 75x75@0 25x75@0 50x25@1 # Large up Triangle #ButtonStyle * 4 50x75@1 25x25@1 75x25@1 50x75@0 # Large down Triangle
# This menu is invoked as a sub-menu - it allows you to quit, # restart, or switch to another WM. AddToMenu "Quit-Verify" "Really Quit Fvwm? " Title + "Yes, Really Quit " Quit + "Restart fvwm " Restart fvwm2 + "Restart fvwm 1.x" Restart fvwm + "Start matchbox " Restart /usr/bin/matchboxwm start + "" Nop + "No, Don't Quit " Nop
# This menu will fire up some very common utilities AddToMenu "Utilities" "Utilities " Title + "Xterm " Exec exec xterm -e /bin/sh& + "Rxvt " Exec exec rxvt -fn 6x13 -rv -e /bin/bash& + "Calculator " Exec exec xcalc & + "Xman " Exec exec xman & + "Xmag " Exec exec xmag & + "" Nop + "Input " Popup Input + "" Nop + "Modules" Popup Module-Popup + "" Nop + "Exit Fvwm " Popup Quit-Verify AddToMenu "Input" "Input " Title + "Button 1 " Exec exec xmodmap -e 'pointer = 1 2 3' + "Button 2 " Exec exec xmodmap -e 'pointer = 2 3 1' + "Button 3 " Exec exec xmodmap -e 'pointer = 3 1 2' + "" Nop + "Xvkbd" Exec exec xvkbd &
# # On Appilcation Window Decoration # # Button Context Modifi Function # the title bar buttons Mouse 0 1 A Menu Window-Ops Close Mouse 0 2 A Maximize-Func Mouse 0 3 A Menu Input Nop Mouse 0 4 A Iconify # titlebar Mouse 1 T A Move-or-Raise Mouse 2 T A Menu Window-Ops2 Nop # rest of the frame Mouse 1 FS A Resize-or-Raise Mouse 2 FS A Menu Window-Ops2 Nop # Icon Mouse 1 I A Move-or-Iconify Mouse 2 I A Menu Window-Ops2 Iconify # anything Mouse 3 TSIF A RaiseLower