# This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
# This file contains the commands fvwm reads while starting.
#

EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750

DeskTopSize 2x2
MenuStyle * fvwm, Foreground maroon, Background grey60, Greyed grey40
MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*

ColormapFocus FollowsMouse

# default Styles:
# make sure these fonts exist on your system:
Style *           Font -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
Style *           IconFont -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
Style *           HilightFore black, HilightBack palevioletred
Style *           BorderWidth 7, HandleWidth 7
Style *           Icon unknown1.xpm, Color lightgrey/dimgrey
Style *           MWMFunctions, MWMDecor, HintOverride
Style *           DecorateTransient, NoPPosition
Style *           IconBox 0 -10 -280 -1
Style *           FocusFollowsMouse
Style *           TileCascadePlacement

# Styles for various Fvwm modules:
Style Fvwm*       NoTitle,  Sticky, WindowListSkip
Style Fvwm*       BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style FvwmPager   StaysOnTop
Style FvwmBanner  StaysOnTop
Style FvwmButtons Icon toolbox.xpm, ClickToFocus

# Styles for your common terminal emulator programs.
# xterms and rxvts in a separate icon box:
Style XTerm       Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style rxvt        Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style rxvt        MWMBorder, MWMButtons

# Styles for various common programs:
Style *lock       NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
Style xbiff       NoTitle, Sticky, WindowListSkip, ClickToFocus
Style xcalc       Icon xcalc.xpm, NoButton 2,ClickToFocus
Style xmh         Icon mail1.xpm, NoIconTitle,StickyIcon
Style xmh         NoButton 2
Style xman        Icon xman.xpm, ClickToFocus
Style xmag        Icon mag_glass.xpm, ClickToFocus
Style xgraph      Icon graphs.xpm, ClickToFocus
Style xmosaic     Color Green/Yellow, ClickToFocus


# 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 1 R       A       Menu MenuFvwmRoot Nop
Mouse 2 R       A       Menu MenuFvwmWindowOps Nop
Mouse 3 R       A       WindowList

#   for the title bar buttons:
Mouse 0 1       A       Menu MenuFvwmWindowOps2 Close
Mouse 0 2       A       FuncFvwmMaximize
Mouse 0 4       A       Iconify

#   for other parts of the window/borders/icons:
Mouse 1 F       A       FuncFvwmResizeOrRaise
Mouse 1 TS      A       FuncFvwmMoveOrRaise
Mouse 1 I       A       FuncFvwmMoveOrIconify
Mouse 2 I       A       Iconify
Mouse 2 FST     A       Menu MenuFvwmWindowOps2 Nop
Mouse 3 TSIF    A       RaiseLower

######################## Initialization Functions ############################
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Module FvwmBanner
+ I Module FvwmButtons

AddToFunc InitFunction
+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70

# For some SM-s (like gnome-session) there is an internal background setter.
AddToFunc SessionInitFunction
+ I Nop

######################## Menus ###################
Read /etc/X11/fvwm/menudefs.hook Quiet
Read menudefs.hook Quiet

DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot  "$[gt.Root Menu]"             Title
+                       "&1. XTerm"             Exec exec xterm
+                       "&2. Rxvt"              Exec exec rxvt
+                       ""              Nop
+                       "&D. Debian Menu"             Popup "/Debian"
+                       ""              Nop
+                       "&R. $[gt.Remote Logins]"     Popup MenuFvwmLogins
+                       ""              Nop
+                       "&U. $[gt.Utilities]"         Popup MenuFvwmUtilities
+                       ""              Nop
+                       "&M. $[gt.Fvwm Modules]"      Popup MenuFvwmModules
+                       "&W. $[gt.Fvwm Window Ops]"   Popup MenuFvwmWindowOps
+                       "&S. $[gt.Fvwm Config Ops]"   Popup MenuFvwmConfig
+                       ""              Nop
+                       "&F. $[gt.Refresh Screen]"   Refresh
+                       "&C. $[gt.Recapture Screen]" Recapture
+                       ""              Nop
+                       "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify

DestroyMenu MenuFvwmUtilities
AddToMenu MenuFvwmUtilities     "$[gt.Utilities]" Title
+                       "&T. Top"       Exec exec xterm -T Top -n Top -e top
+                       "&C. Calculator" Exec exec xcalc
+                       "&M. Xman"      Exec exec xman
+                       "&G. Xmag"      Exec exec xmag
+                       "&R. Editres"   Exec exec editres
+                       ""              Nop
+                       "&E. XEmacs"    Exec exec xemacs
+                       "&A. Xmh Mail"  FuncFvwmMailXmh xmh "-font fixed"
+                       ""              Nop
+                       "&L. XLock"     Exec exec xlock -mode random
+                       ""              Nop
+                       "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults

DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig "$[gt.Fvwm Config Ops]" Title
+ "&S. $[gt.Sloppy Focus]"        FuncFvwmFocusPolicyChange SloppyFocus
+ "&C. $[gt.Click To Focus]"      FuncFvwmFocusPolicyChange ClickToFocus
+ "&F. $[gt.Focus Follows Mouse]" FuncFvwmFocusPolicyChange FocusFollowsMouse
+ "" Nop
+ "&1. $[gt.Colormap Follows Mouse]" ColormapFocus FollowsMouse
+ "&2. $[gt.Colormap Follows Focus]" ColormapFocus FollowsFocus
+ "" Nop
+ "&3. $[gt.Full Paging ON]"           EdgeScroll 100 100
+ "&4. $[gt.All Paging OFF]"           EdgeScroll 0 0
+ "&5. $[gt.Horizontal Paging Only]"   EdgeScroll 100 0
+ "&6. $[gt.Vertical Paging Only]"     EdgeScroll 0 100
+ "&7. $[gt.Partial Paging]"           EdgeScroll 50 50
+ "&8. $[gt.Full Paging && Edge Wrap]" EdgeScroll 100000 100000

# The window Ops menus exhibit a different HotKey style.
# There are 2 versions of the WindowOps Menu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "      nu, meant to be bound to different
# things.  Here is the "   