Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
# -*- mode: fvwm-generic; coding: raw-text-unix -*-
# Edrx, 2007dec26

# All my fvwm configurations except for the key bindings - they are in
# another file.

# (find-angg ".fvwm/")
# (find-angg ".fvwm/keys.fwvm")
# (find-angg ".fvwm/nokeys.fvwm")
# (find-angg ".fvwm/withkeys.fvwm")

# (find-man "1 fvwm" "-r | --replace")
# (find-man "1 fvwm" "-f config-file\n")
# fvwm -replace -f ~/.fvwm/.fvwm2rc
# fvwm -replace -f ~/.fvwm/all.fvwm &

# «.desktop»		(to "desktop")
# «.borders»		(to "borders")
# «.window-placement»	(to "window-placement")
# «.style»		(to "style")
# «.window-styles»	(to "window-styles")
# «.style-bare»		(to "style-bare")
# «.tab»		(to "tab")
# «.mouse-bindings»	(to "mouse-bindings")
# «.ee»			(to "ee")
# «.FvwmCommand»	(to "FvwmCommand")
# «.moving-the-cursor»	(to "moving-the-cursor")
# «.restart-pager»	(to "restart-pager")
# «.functions»		(to "functions")
# «.debian-menu»	(to "debian-menu")
# «.KeyboardMenu»	(to "KeyboardMenu")
# «.UnclutterMenu»	(to "UnclutterMenu")
# «.DebianMenu»		(to "DebianMenu")
# «.menus»		(to "menus")
# «.window-ops-menu»	(to "window-ops-menu")




# «desktop»  (to ".desktop")
# (find-fvwmhelp "DeskTopSize")
# (find-fvwmhelp "EdgeScroll horizontal[p] vertical[p]")
# (find-fvwmhelp "EdgeResistance scrolling moving [xinerama-moving]")
#
DeskTopSize 6x4
EdgeScroll 100 100
EdgeResistance 0 20

# «borders»  (to ".borders")
# (find-woodyfvwmfile "system.fvwm2rc" "Style \"*\" BorderWidth 6")
# (find-man "1 fvwm" "\n       Borders")
Style "*" BorderWidth 6
Style "*" HandleWidth 6
Style "*" MWMFunctions
Style "*" MWMBorder
Style "*" MWMDecor
Style "*" DecorateTransient

# «window-placement»  (to ".window-placement")
# (find-man "1 fvwm" "\n   COMMANDS AFFECTING WINDOW MOVEMENT AND PLACEMENT")
# (find-man "1 fvwm" "\n       Window Manager placement")
# (find-man "1 fvwm" "\n       Window Manager placement" "  ManualPlacement")
# (find-woodyfvwmfile "system.fvwm2rc" "Style \"*\" ActivePlacement")
Style "*" ActivePlacement
Style "*" ClickToFocus

# «style»  (to ".style")
# (find-fvwmhelp "Style stylename options")
# (find-fvwmhelp "Style stylename options" "Color  takes  two arguments")
#
Style default-style UseDecor default-decor
Style default-style Color white/steelblue
Style default-style ClickToFocus
Style "*" UseStyle default-style
Style "*" HilightFore black
Style "*" HilightBack peachpuff

# «window-styles»  (to ".window-styles")
# (find-man "1 fvwm" "WindowListSkip styles")
# (find-man "1 fvwm" "CirculateSkip and CirculateHit")
# (find-man "1 fvwm" "HandleWidth takes a numeric argument")
#
Style "Fvwm*" NoTitle
Style "Fvwm*" WindowListSkip
Style "Fvwm*" CirculateSkip
Style "FvwmButtons" Sticky
Style "FvwmIconMan" Sticky
Style "FvwmPager"   Sticky, StaysOnBottom, Handles, HandleWidth 5

# (find-man "1 FvwmIdent")
Style "FvwmIdent" Title
Style "FvwmIdent" WindowListHit
Style "FvwmIdent" CirculateHit

MenuStyle "*" mwm, Foreground black, Background grey, Greyed white, \
  Font -adobe-helvetica-bold-r-*-*-12-*

# «style-bare»  (to ".style-bare")
# (find-es "fvwm" "style:bare")
Style bare       !Title, !Borders
Style baremanual UseStyle bare, ManualPlacement
Style Bare       !Title, !Borders
Style BareManual UseStyle Bare, ManualPlacement

# (find-woodyfvwmfile "system.fvwm2rc" "# Configure the FvwmPager module")
# (find-man "FvwmPager")

*FvwmPagerBack SlateGrey
*FvwmPagerFore Black
*FvwmPagerFont none
*FvwmPagerHilight SlateBlue4
*FvwmPagerGeometry -0-0
*FvwmPagerSmallFont -*-times-medium-r-*-*-*-80-*-*-*-*-*-*





# (find-man "1 fvwm" "BUILT-IN KEY AND MOUSE BINDINGS")
# (find-man "1 fvwm" "Tear Off Menus")

# «mouse-bindings»  (to ".mouse-bindings")
# (find-fvwmhelp "Key Keyname Context Modifiers Function")
# (find-fvwmhelp "Mouse Button Context Modifiers Function")
# Key Keyname  Context Modifiers Function
# Mouse Button Context Modifiers Function
#       1: left button
#       2: middle button (or left+right)
#       3: right button
#       0: any button
#              R: root window
#              W: application window
#              D: desktop application (as kdesktop or Nautilus desktop)
#              T: window title-bar
#              S: window side, top, or bottom bar
#              F: window frame (the corners)
#              []-_: left, right, top or bottom side
#              <^>v: top left, top right, bottom right, bottom left corners
#              I: icon window
#              13579 08642: title-bar buttons (1=leftmost, 2=rightmost)
#              A: any context
#                      N: no modifiers
#                      C: Control  
#                      S: Shift 
#                      M: Meta 
#                      L: Caps-Lock (ignored by default)
#                      12345: mod1..mod5 (mod4=Windows key)
#                      A: any modifier
#
Mouse 1 R A Menu /Debian		# root window, button 1 (left)
Mouse 2 R A Menu Window-Ops		# root window, button 2 (middle)
Mouse 3 R A WindowList
# ^ root window, button 3 (middle)
# (find-man "1 fvwm" "Key Tab A M WindowList")
# (find-man "1 fvwm" "WindowList [(conditions)]")
#
Mouse 0 T A move-and-raise-or-raiselower # title bar
Mouse 0 F A resize-or-raiselower	 # corners
Mouse 0 S A resize-or-raiselower	 # side/top/bottom

# Window buttons (13579 08642)
Mouse 0 1 A Popup Window-Ops		# "-" button, click with any
Mouse 0 2 A Close			# "X" button, 2nd from the left
Mouse 1 4 A Maximize 0 100		# rightmost
Mouse 2 4 A Maximize 100 100
Mouse 3 4 A Maximize 100 0
Mouse 0 6 A Iconify

# (find-fvwmhelp "")
# (find-fvwmhelp "AddToDecor")
# (find-fvwmhelp "AddButtonStyle")
# (find-fvwmhelp "ButtonStyle")
# (find-woodyfvwmfile "system.fvwm2rc" "DestroyDecor default-decor")
#
DestroyDecor default-decor
AddToDecor default-decor
+ ButtonStyle Reset
+ ButtonStyle 2 Vector 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 \
                          60x50@0 80x70@0 80x80@0 70x80@0 50x60@0 30x80@0 \
                          20x80@0 20x70@1 40x50@1 20x30@0 20x20@1 # an X
+ ButtonStyle 4 Vector 5 25x75@0 75x75@0 75x25@0 25x25@1 25x75@1  # a square
+ ButtonStyle 6 Vector 4 50x75@1 25x25@1 75x25@1 50x75@0	  # a nabla



###
### ee
###

# «ee»  (to ".ee")
# «FvwmCommand»  (to ".FvwmCommand")

# (find-man "FvwmConsole")
# (find-fvwmhelp "DestroyFunc function")
# (find-fvwmhelp "AddToFunc [ name [ I | M | C | H | D action ]]")
# (find-fvwmhelp "Read filename [quiet]")

DestroyFunc ee
AddToFunc ee "I" read ee.fvwm

# (find-man "FvwmCommand")
# (find-man "FvwmCommand" "Module FvwmCommandS")
# (shell-command-to-string "FvwmCommand 'CursorMove +5 +2'")
#
AddToFunc StartFunction "I" Module FvwmCommandS





# (find-man "fvwm")
# (find-man "fvwm" "\nINITIALIZATION")



# «restart-pager»  (to ".restart-pager")
# (find-man "1 FvwmPager")
# (find-man "1 FvwmPager" "*FvwmPager: DeskTopScale number")
*FvwmPager: DeskTopScale 50

# (find-fvwmhelp "KillModule modulename [modulealias]")
KillModule FvwmPager
Module FvwmPager



# «functions»  (to ".functions")
# (find-fvwmhelp "AddToFunc [name [I | M | C | H | D action]]")
# The letter before the action tells what kind of action triggers the
# command which follows it.
#   I: Immediate
#   M: Motion (user moves the mouse)
#   C: Click
#   H: Hold
#   D: Double-click
#

# Standard functions
#
DestroyFunc deiconify-and-focus
AddToFunc   deiconify-and-focus
+ "I" Iconify -1
+ "I" Focus

DestroyFunc focus-and-raise
AddToFunc   focus-and-raise
+ "I" Focus
+ "I" Raise

DestroyFunc move-or-raiselower
AddToFunc   move-or-raiselower
+ "M" Move
+ "C" RaiseLower

DestroyFunc move-and-raise-or-raiselower
AddToFunc   move-and-raise-or-raiselower
+ "M" Move
+ "M" Raise
+ "C" RaiseLower

DestroyFunc resize-or-raiselower
AddToFunc   resize-or-raiselower
+ "M" Resize
+ "C" RaiseLower


# Non-standard functions for the pager
#
DestroyFunc pager-to-bottom
AddToFunc   pager-to-bottom
+ "I" KillModule FvwmPager
+ "I" Style "FvwmPager" StaysOnBottom
+ "I" Module FvwmPager

DestroyFunc pager-to-top
AddToFunc   pager-to-top
+ "I" KillModule FvwmPager
+ "I" Style "FvwmPager" StaysOnTop
+ "I" Module FvwmPager

DestroyFunc no-pager
AddToFunc   no-pager
+ "I" KillModule FvwmPager




####
#### Menus
####

# Build the /Debian menu adding a few extra things.

# «debian-menu»  (to ".debian-menu")
# (find-man "1 fvwm" "MissingSubmenuFunction")
# (find-man "1 fvwm-menu-directory")
# (find-man "1 fvwm-menu-directory" "+ I PipeRead")
# (find-fline "/usr/bin/fvwm-menu-directory")
# http://www.zensites.net/fvwm/guide/advanced_menu.html
# (find-woodyfvwmfile "system.fvwm2rc" "AddToMenu /Debian")

# (find-fvwmhelp "Menu menu-name [position] [double-click-action]")
# (find-fvwmhelp "Popup PopupName [position] [default-action]")
# (find-fvwmhelp "AddToMenu menu-name [menu-label action]")

DestroyMenu Quit-Verify
AddToMenu Quit-Verify "Really quit FVWM?" Title
+ "No, restart Fvwm"   Restart
+ ""                   Nop
+ "Yes, really quit"   Quit

DestroyMenu Quit-Verify
AddToMenu Quit-Verify "Really quit FVWM?" Title
+ "fvwm -restart -f withkeys.fvwm"   Exec fvwm -replace -f withkeys.fvwm
+ "fvwm -restart -f nokeys.fvwm"     Exec fvwm -replace -f nokeys.fvwm
+ ""                   Nop
+ "Yes, really quit"   Quit

# «KeyboardMenu»  (to ".KeyboardMenu")
# (find-es "x" "setxkbmap-switch")
DestroyMenu KeyboardMenu
AddToMenu KeyboardMenu "Mod4-K: Keyboard" Title
+ "mysetxkb us"       Exec mysetxkb us
+ "mysetxkb us_intl"  Exec mysetxkb us_intl
+ "mysetxkb abnt2"    Exec mysetxkb abnt2
+ "mysetxkb xkbprint" Exec mysetxkb xkbprint

# «UnclutterMenu»  (to ".UnclutterMenu")
# (find-es "x" "setxkbmap-switch")
DestroyMenu UnclutterMenu
AddToMenu UnclutterMenu "Mod4-U: Unclutter" Title
+ "unclutter -idle 1 -root" Exec unclutter -idle 1 -root
+ "killall unclutter"       Exec killall unclutter

# «DebianMenu»  (to ".DebianMenu")
DestroyMenu /Debian
# (find-fline "/etc/X11/fvwm/menudefs.hook")
# Read        "/etc/X11/fvwm/menudefs.hook"
Read          "/etc/X11/fvwm/menudefs.hook" Quiet
AddToMenu /Debian
+ ""            Nop
+ "xterm"       Exec xterm
+ "uxterm"      Exec uxterm
+ "xzoom"       Exec xzoom
+ "xzgv /tmp/d/" Exec xzgv /tmp/d/ -z -t -geometry=740x520
+ "xterm -e aumix" Exec xterm -e aumix
+ "FvwmConsole" Module FvwmConsole
+ "xmms"        Exec xmms
+ "keyboard"    Popup KeyboardMenu
+ "unclutter"   Popup UnclutterMenu
+ "Xscreenshot"         Exec Xscreenshot
+ "Xscreenshot-rect"    Exec Xscreenshot-rect
+ "Xscreenshot-rect ee" Exec sh -c 'source $EEVTMPDIR/ee.getrect'
+ "Xscreenshot: xzgv"   Exec xzgv /tmp/screenshots/
+ ""            Nop
+ "Exit Fvwm"   Popup Quit-Verify

# (find-angg "elisp/eeimage.el")
# (find-angg "bin/Xscreenshot")
# (find-angg "bin/Xscreenshot-rect")
# (find-node "(xzgv)Invoking xzgv" "`--geometry GEOM'")







# «menus»  (to ".menus")
# (find-angg ".fvwm/main-menu.hook")

# (find-fline "/etc/X11/fvwm/system.fvwm2rc.gz")
# (find-fline "/etc/X11/fvwm/system.fvwm2rc" "AddToMenu Window-Ops")
# (find-fline "/etc/X11/fvwm/system.fvwm2rc" "# Section: Key bindings")
# (find-fline "/etc/X11/fvwm/system.fvwm2rc" "# Section: post.hook")



# «window-ops-menu»  (to ".window-ops-menu")
# (find-woodyfvwmfile "system.fvwm2rc" "# The Window-Ops menu")
DestroyMenu Window-Ops
AddToMenu Window-Ops "Mod4-F1: Window Ops" Title
+ "Mod4-F2:  Main Menu"                  Popup /Debian
+ "Mod4-F3:  Lower"                      Lower
+ "Mod4-F4:  Window List"                WindowList
+ "Mod4-F5:  Previous"                   Prev
+ "Mod4-F6:  Next"                       Next
+ "Mod4-F7:  Move"                       Move
+ "Mod4-F8:  Resize"                     Resize
+ "Mod4-F9:  (De)Iconify"                Iconify
+ "Mod4-F10: (Un)Maximize to screen"     Maximize 100 100
+ "Mod4-F11: Raise"                      Raise
+ "Mod4-F12: (Un)Stick"                  Stick        
+ "         (Un)Maximize vertical"       Maximize 0 100
+ "         (Un)Maximize horizontal"     Maximize 100 0
+ "         (Un)Shade"                   WindowShade
+ ""                                     Nop
+ "         ScrollBar"                   Module FvwmScroll 2 2
+ ""                                     Nop
+ "         Destroy"                     Destroy
+ "         Close"                       Close


# (find-man "1 fvwm" "\n   MODULE COMMANDS")