#this is a .fvwm2rc/system.fvwm2rc file for fvwm-2.

EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750

# make sure these fonts exist on your system:
WindowFont "-b&h-lucida-medium-r-normal-*-*-140-*-*-p-*-iso8859-1"
IconFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

ImagePath /usr/X11R6/include/X11/pixmaps/:/usr/share/icons/:/usr/share/icons/mini/
ModulePath /usr/lib/X11/fvwm2:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/X11/bin

DeskTopSize 2x2

#MenuStyle * mwm
MenuStyle * Foreground white, Background #9471a5e2bbe7 
#MenuStyle * Greyed black, ActiveFore white
MenuStyle * Font -b&h-lucida-medium-r-normal-*-*-140-*-*-p-*-iso8859-1

ColormapFocus FollowsMouse
SnapAttraction 10
IconFill Top Right

# uncomment here to enable
Style "*"          ClickToFocus

# default Styles:
Style "*"           MWMBorder, MWMButtons, MWMFunctions, MWMDecor
Style "*"           BorderWidth 6, HandleWidth 6
Style "*"           DecorateTransient, NoPPosition
Style "*"           RandomPlacement, SmartPlacement
Style "*" 	    	IconBox -70 1 -1 -140, IconFill t r
Style "*"			Icon application2.xpm
Style "*"	    	ForeColor White
Style "*"           BackColor #95dca777bdb1

# Styles for various Fvwm modules:
Style "Fvwm*"       BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "Fvwm*"       CirculateSkipIcon, CirculateSkip
Style "FvwmTalk"    BorderWidth 2, HandleWidth 2, NoTitle,  Sticky, WindowListSkip
Style "FvwmPager"   BorderWidth 1, HandleWidth 1, NoTitle,  Sticky, WindowListSkip

# Styles for your common terminal emulator programs:
Style "grun"	    NoTitle,  Sticky, WindowListSkip, BorderWidth 0
Style "xfce"	    Sticky, UsePPosition
Style "xclock"	    NoTitle,  Sticky, WindowListSkip, BorderWidth 0
Style "tkgoodstuff" NoTitle,  Sticky, WindowListSkip, BorderWidth 0
Style "*lock"       NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
Style "xisdnload"   BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "xmonisdn"    BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "xbiff"       BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "coolmail"    BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "asmail"      BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "asclock"     BorderWidth 0, HandleWidth 0, NoTitle,  Sticky, WindowListSkip
Style "XFce*"       Sticky
Style "XFbd*"       Sticky 
Style "Popup menu*" Sticky
Style "Alert*"    Sticky
Style "Question*" Sticky


# some simple default key bindings:
Key Next         A       SCM     Next [*] Focus
Key Prior        A       SCM     Prev [*] Focus

# some simple default mouse bindings:
#   for the root window:
Mouse 3	R   	A       Menu RootMenu Close
Mouse 2	R    	A      	Menu Window-Ops Nop
Mouse 1	R    	A      	Menu mwmlike Nop

#   for the title bar buttons:
Mouse 0	1    	A      	Menu Window-Ops2 Close
Mouse 0	2    	A     	Maximize 100 100
Mouse 0	4    	A     	Iconify

#   for other parts of the window/borders/icons:
Mouse 1	F	A	Resize-or-Raise
Mouse 1	T	A	Move-or-Raise
Mouse 1	I	A	Move-or-Iconify
Mouse 1	S	A	Resize-or-Raise
Mouse 2	I	A	Iconify
Mouse 2	FST	A	Menu Window-Ops2 Nop
Mouse 3	TSIF	A	RaiseLower

######################## Initialization Functions ############################
# AddToFunc InitFunction 	  "I" Module FvwmButtons
AddToFunc InitFunction 	   
+       "I"     Module xfsound
+       "I"     Module xfce
+       "I"     Desk   0 0
+       "I"     Exec   xfbd -d
+       "I"     Exec   xfmouse -d
+	"I"	exec /usr/local/bin/showprov

AddToFunc RestartFunction  
+       "I"     Module xfsound
+       "I"     Module xfce
+       "I"     Desk   0 0
+       "I"     Exec   xfbd -d
+       "I"     Exec   xfmouse -d

 
########################### Menu #########################################



AddToMenu "Module-Popup" "Modules" Title
+              "XFce"      Module xfce -shared
+              "FvwmIdentify"    Module FvwmIdent
+              "SaveDesktop"  Module FvwmSave
+              "FvwmWinList"  Module FvwmWinList
+         "FvwmPager"   Module FvwmPager 0 3

AddToMenu "Window-Ops2" "&Restore"      Iconify -1
+                       "&Move"         Move-or-Raise
+                       "&Size"         Resize-or-Raise
+                       "Mi&nimize"     Iconify 1
+                       "Ma&ximize"     Maximize 100 100
+        "&Cascade"  Module FvwmCascade -resize
+        "&Tile"     Module FvwmTile -nostretch 
+                       ""              Nop
+                       "&Exit"         Destroy
+                       "&Close Alt+F4" Delete

AddToMenu "Quit-Verify" "Quit Fvwm? " Title
+              "Restart "    Restart fvwm2
+              "Quit "       Quit
+              ""            Nop
+              "Don't Quit " Nop

AddToMenu "Root" "Root menu" Title
+  "New window"   Exec xterm
+  "Shuffle Up"  Next [*] focus
+  "Shuffle Down"   Prev [*] focus
+  "Refresh"  Refresh 
+  "" Nop
+  "Mouse..." Exec xfmouse -i
+  "" Nop
+  "Backdrop..." Exec xfbd -i
+  "" Nop
+  "Sound..."       Exec xfsound
+  "" Nop
+  "Window..."    Popup Window-Ops2 
+  "" Nop
+  "Modules..."   Popup Module-Popup
+  "" Nop
+  "Exit Fvwm"    Popup Quit-Verify

# This defines the most common window operations

# This defines the most common window operations

AddToMenu "Window" "Window Ops" Title
+ "&Move"                     Function Move-or-Raise
+ "&Resize"                   Function Resize-or-Raise
+ "R&aise"           Raise
+ "&Lower"              Lower
+ "(De)Iconify"               Iconify
+ "(Un)Stick"                 Stick
+ "(Un)Maximize"              Maximize 100 100
+ ""                          Nop
+ "&Close"                    Delete
+ ""                          Nop
+ "Switch to..."              WindowList
+ "Refresh Screen"         Refresh

AddToFunc "Iconify-and-Raise" "M" Iconify
+              "M" Raise

AddToFunc "Move-or-Lower" "M" Move
+              "M" Lower
+              "C" Lower
+              "D" RaiseLower

AddToFunc "Move-or-Iconify" "M" Move
+              "C" PopUp Window Ops2
+              "D" Iconify

AddToFunc "windowops-or-die" "M" PopUp Window Ops2
+              "C" PopUp Window Ops2
+              "D" Close


AddToFunc "Move-or-Raise" "M" Move
+              "M" Raise
+              "C" Raise
+              "D" Iconify

AddToFunc "Move-or-Lower" "M" Move
+              "C" Lower
+              "D" RaiseLower

AddToFunc "Resize-or-Raise" "M" Resize
+              "M" Raise
+              "C" Raise
+              "D" RaiseLower

AddToFunc "Resize-or-Lower" "M" Resize
+              "C" Lower
+              "D" RaiseLower

#     Button   Context Modifi    Function
Mouse 1     R     A       Menu "Root" Nop
Mouse 2     R     A       Menu "Window" Nop
Mouse 3     R     A        WindowList

#     Button   Context Modifi    Function
Mouse 0     1     A        Function "windowops-or-die"
Mouse 0     2     A        Maximize
Mouse 0     4     A        Iconify

Mouse 1         FS      A       Function "Resize-or-Raise"
Mouse 2         FS      A       Function "Resize-or-Lower"
Mouse 1         T       A       Function "Move-or-Raise"
Mouse 2         T       A       Function "Move-or-Lower"

Mouse 1     I  A  Function "Move-or-Iconify"
Mouse 2     I  A  Function "Move-or-Iconify"
Mouse 3     I  A  Menu "Window Ops2" Nop
Mouse 3     FST      A        Function "windowops-or-die"

Key Left A  C  Scroll -100 0
Key Right   A  C  Scroll +100 +0
Key Up      A  C  Scroll +0   -100
Key Down A  C  Scroll +0   +100

Key Left A  M  Scroll -10 +0
Key Right   A  M  Scroll +10 +0
Key Up      A  M  Scroll +0   -10
Key Down A  M  Scroll +0   +10

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

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

Key F1      A  M  Popup "Window"
Key F2      A  M  Popup "Root"
Key F3      A  M  Lower
Key F4      A  M  Destroy
Key F5      A  M  Next [*] focus
Key F6      A  M  Prev [*] focus
Key F7      A  M  Move
Key F8      A  M  Resize
Key F9      A  M  Iconify
Key F10     A  M  Maximize
Key L5                IW      N       RaiseLower
Key L5                IW      S       Lower
Key L5                IW      C       Raise
Key L7                IW      A       Iconify


*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1

