# Modified by Sam Trenholme starting on 7/17/1995 to 6/27/1997
# And modified some more on 2000/04/20, though I only use FVWM currently
# on my system at home, my old P100 laptop
# And modified yet more on 2001/10/08
# You know, in RedHat 6.2, they finally stopped installing fvwm1 on
# RedHat systems.  They still install Fvwm2, because there might be people
# in love with AnotherLevel still.
# Then again, RedHat still has fvwm on the "powertools" CD

###########################################################################
# set up the colors
#
# OK some people like bright clear colors on their window decorations.
# These people, I guess would mostly be from nice sunny/good weather places
# line California.
#
# StdForeColor 		Black
# StdBackColor		LightSkyBlue
# HiForeColor 		yellow
# HiBackColor		PeachPuff1
# PagerBackColor	BlanchedAlmond

# Me, I'm from Upstate New York, and live in New Hampshire, so I prefer
# these dark muddy colors...

# this is used for non-selected windows, menus, and the panner

# LCD screen
#StdForeColor 		#ff2 
#StdBackColor 		#024
#StdStippleColor         #001

# Normal monitor attached to 365XD 
#StdForeColor            #ff2
#StdBackColor            #420

# 2000.10.08 ideas
#StdForeColor		#B96
#StdBackColor		#604820

# 2002.04.25 ideas
StdForeColor #000000
StdBackColor #a2a090

# this is used for the selected window
# LCD screen
#HiForeColor 		#ff2  
#HiBackColor 		#044 

# Normal monitor attached to 365XD
#HiForeColor             #dd7 
#HiBackColor             #424 

# 2000.04.21 ideas
#HiForeColor		#ED8
#HiBackColor		#874

# 2002.04.25 ideas
HiForeColor             #000000
HiBackCOlor             #c5c2a4

# LCD screen
#PagerBackColor		black 
#PagerForeColor		#0cc          

# Normal monitor attached to 365XD
#PagerBackColor          black 
#PagerForeColor          #dd7         

# 2001.10.08 ideas
#PagerBackColor		#543
#PagerForeColor		#A97
#StickyForeColor		#985
#StickyBackColor		#764 

# 2002.04.25 ideas
PagerBackColor		#c5c2a4
PagerForeColor		#000000
StickyForeColor		#000000
StickyBackColor		#c5c2a4

# Menu colors

# LCD screen
#MenuForeColor           #ff2 
#MenuBackColor           #024  
#MenuStippleColor        #048 

# Normal monitor attached to 365XD
#MenuForeColor           #dd7
#MenuBackColor           #114  
#MenuStippleColor        #228 

# 2000.04.21 ideas
#MenuForeColor		#eda
#MenuBackColor		#874

MenuForeColor		#000000
MenuBackColor		#c5c2a4

############################################################################
# Now the fonts - one for menus, another for window titles, another for icons
Font			-adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*
#Font			-*-times-medium-i-*-*-*-140-*-*-*-*-*-*
WindowFont		-adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
#IconFont		-adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*
IconFont		fixed

###########################################################################
# Set up the major operating modes
#
########################      FOCUS STUFF     ##############################
# Set windows to auto-raise after 750 milliseconds if you like it.
# Autoraise can sometimes obscure pop-up windows. Performance is now
# similar to olvwm's auto-raise feature.
AutoRaise 600

# Normally, we'll be in focus-follows mouse mode, but uncomment this 
# for mwm-style click-to-focus

#I'm used to the old Berkeley-style mouse-focus -- set
#ClickToFocus

########################      ICON STUFF     ##############################
# Auto Place Icons is a nice feature....
# This creates two icon boxes, one on the left side, then one on the
# bottom. Leaves room in the upper left for my clock and xbiff,
# room on the bottom for the Pager.
IconBox -150 90 -5 -140
IconBox 5 -140 -140 -5
#IconBox -70 1 -1 -140

# If you uncomment this, and make sure that the WindowList is bound to
# something, it works pretty much like an icon manager.
#SuppressIcons

# StubbornIcons makes icons de-iconify into their original position on the
# desktop, instead of on the current page.
#StubbornIcons

# With AutoPlacement, icons will normally place themselves underneath active
# windows. This option changes that.
#StubbornIconPlacement

# If you want ALL you icons to follow you around the desktop (Sticky), try
# this
StickyIcons

########################      MWM EMULATION     #######################
#
# My feeling is that everyone should use MWMDecorHints and MWMFunctionHints,
# since some applications depend on having the window manager respect them

# MWMFunction hints parses the function information in the MOTIF_WM_HINTS
# property, and prohibits use of these functions on the window. Appropriate
# portions of the window decorations are removed.
MWMFunctionHints

# MWM is kinda picky about what can be done to transients, and it was keeping
# me from iconifying some windows that I like to iconify, so here's an
# over-ride that will allow me to do the operation, even tough the menu
# item is shaded out.
MWMHintOverride

# MWMDecor hints parses the decoration information in the MOTIF_WM_HINTS
# property, and removes these decoratons from the window. This does not affect
# the functions that can be performed via the menus.
MWMDecorHints

# These are affect minor aspects for the look-and-feel.
# Sub-menus placement mwm-style?
# MWMMenus
# mwm-style border reliefs (less deep than default fvwm) ?
MWMBorders
# Maximize button does mwm-inversion thingy
MWMButtons
########################      MISCELLANEOUS STUFF     #######################
# If you don't like the default 150 msec click delay for the complex functions
# change this and uncomment it.
#ClickTime 150

# OpaqueMove has a number (N) attached to it (default 5).
# if the window occupies less than N% of the screen, 
# then opaque move is used. 0 <= N <= 100
OpaqueMove 100

# flip by whole pages on the edge of the screen.
EdgeScroll 100 100

# A modest delay before flipping pages seems to be nice...
# I thresh in a 50 pixel Move-resistance too, just so people
# can try it out.
#EdgeResistance 100 50

# I like to use a large virtual screen and move from page to page with the
# pager.
#EdgeResistance 10000 0


########################      WINDOW PLACEMENT     #######################
# RandomPlacement prevents user interaction while placing windows:
# RandomPlacement

# SmartPlacement makes new windows pop-up in blank regions of screen 
# if possible, or falls back to random or interactive placement.
SmartPlacement

# With SmartPlacement, windows will normally place themselves over icons. 
# Uncomment this to change that.
StubbornPlacement

# NoPPosition instructs fvwm to ignore the PPosition field in window 
# geometry hints. Emacs annoyingly sets PPosition to (0,0)!
#NoPPosition


########################      DECORATIONS     #######################
# If you want decorated transient windows, uncomment this:
#DecorateTransients

###########################################################################
# Set up the virtual desktop and pager

#set the desk top size in units of physical screen size
#enlarged to 3x2 because 2x2 is getting a bit small-- set 8/5/95
#reduced from 3x3 to 2x3 because we aren't working at Netcom anymore, and
#haven't needed 18 open windows for a while now.  It is only for home use 
#right now, so all I really need are three Xterms (Ping, Pine, and getmail)
#and a Netscape window, and a couple open slots for whatever.
DeskTopSize 2x2

# and the reduction scale used for the panner/pager
DeskTopScale 25

# Use the Fvwm Pager
#Pager 717 533
 Pager -1 -1

##########################################################################
# Module path and paths to the icons
#
# ModulePath is a colon-separated list, just like regular unix PATH
ModulePath /usr/lib/X11/fvwm
PixmapPath /home/nc0636/lib
IconPath   /home/nc0636/lib

############################################################################
# Set the decoration styles and window options
# Order is important!!!!
# If compatible styles are set for a single window in multiple Style
# commands, then the styles are ORed together. If conflicting styles
# are set, the last one specified is used.

# These commands should command before any menus or functions are defined,
# and before the internal pager is started.

# change the default width.
Style "*" BorderWidth 5, HandleWidth 5,Icon unknown1.xpm

Style "Fvwm*"      NoTitle, WindowListSkip, CirculateSkip
Style "Fvwm Pager" Sticky
Style "desktop icon" Sticky
Style "FvwmBanner" StaysOnTop
Style "GoodStuff"  NoTitle, NoHandles, WindowListSkip,Sticky
Style "xclock"     NoTitle, NoHandles,Sticky
Style "xdaliclock" NoTitle, NoHandles,Sticky
Style "*load"     NoTitle, NoHandles
Style "xbiff"      NoTitle,            WindowListSkip
Style "rxvt"       Icon  term.xpm
Style "xterm"      Icon xterm.xpm
Style "Appointment" Icon datebook.xpm
Style "xcalc"      Icon xcalc.xpm
Style "xbiff"      Icon mail1.xpm
Style "xmh"        Icon mail1.xpm
Style "xman"	   Icon xman.xpm
Style "xvgr"	   Icon graphs.xpm
Style "matlab"	   Icon math4.xpm
Style "xmag"	   Icon mag_glass.xpm
Style "xgraph"	   Icon graphs.xpm
Style "GoodStuff"  Icon toolbox.xpm


#############################################################################

# Stuff to do at start-up

Function "InitFunction"
#	Module	"I"	FvwmBanner
#	Exec	"I"	xpmroot /usr/include/X11/pixmaps/fvwm.xpm &
# 2000.04.21 ideas
# 	Exec	"I"	xsetroot -solid "#997"      
	Exec	"I"	xloadimage -onroot /home/set/tech/pics/ytumamátambién_raiz.jpg
#	Exec    "I"     xclock -geometry 66x61-1-69 -rv -fg \#0f0 -padding 0
# RH5.2 xdaliclock
# 1124x1024 Xdaliclock
	Exec    "I"    xdaliclock -font 7x14 -fg \#fff -transparent -noseconds -geometry -105--5 
#	Exec    "I"	xdaliclock -font 7x14 -fg \#dd7 -transparent -noseconds -geometry -75--15
# LCD screen
#	Exec    "I"	xdaliclock -font 7x14 -fg \#ff2 -shape -noseconds -geometry +653+574
# Normal monitor
#	Exec    "I"	xdaliclock -font 7x14 -fg \#dd7 -shape -noseconds -geometry +653+574
        Exec    "I"     xrdb -merge ~/.Xresources
 	Module	"I"	GoodStuff
#	Module	"I"	FvwmPager 0 3
	Desk	"I"	0 0
#	Exec	"I"	exec xmh -font fixed -geometry 507x750+0+0 &
#	Wait	"I"	xmh
#	Desk 	"I"	0 0
EndFunction

Function "RestartFunction"
# 2001.10.08 ideas
	Exec	"I"	xloadimage -onroot /home/set/tech/pics/ytumamátambién_raiz.jpg
# 	Exec	"I"	xsetroot -solid "#997"      
#	Exec	"I"	xsetroot -bitmap /usr/local/netcom/netcom.xbm -bg "#004"
#	Exec	"I"	xsetroot -bitmap /home/set/redhat.xbm -bg "#004"
 	Module	"I"	GoodStuff
#	Module	"I"	FvwmPager 0 3
EndFunction


############################################################################
# Now define some handy complex functions

# This one moves and then raises the window if you drag the mouse,
# only raises the window if you click,  or does a RaiseLower if you double 
# click
Function "Move-or-Raise"
	Move 		"Motion"
	Raise		"Motion"
	Raise		"Click"
	RaiseLower	"DoubleClick" 
EndFunction

# This one maximizes vertically if you click (leaving room for the GoodStuff bar at the
# bottom, or does a full maximization if you double click, or a true full vertical 
# maximization if you just hold the mouse button down.
Function "maximize_func"
	Maximize	"Motion" 0 100
	Maximize	"Click" 0 80
	Maximize	"DoubleClick" 100 100
EndFunction


# This one moves and then lowers the window if you drag the mouse,
# only lowers the window if you click,  or does a RaiseLower if you double 
# click
Function "Move-or-Lower"
	Move 		"Motion"
	Lower		"Motion"
	Lower		"Click"
	RaiseLower	"DoubleClick"
EndFunction

# This one moves or (de)iconifies:
Function "Move-or-Iconify"
	Move 		"Motion"
	Iconify		"DoubleClick"
EndFunction

# This one resizes and then raises the window if you drag the mouse,
# only raises the window if you click,  or does a RaiseLower if you double 
# click
Function "Resize-or-Raise"
	Resize 		"Motion"
	Raise		"Motion"
	Raise		"Click"
	RaiseLower	"DoubleClick"
EndFunction


# This is provided as a hint only.
# Move to a known page on the desktop, then start an application in a 
# known location. Could also switch to a known desktop, I guess
#Function "abs_coord"
#	GoToPage "Immediate"	1,1
#	Exec	"Immediate"	exec xcalc -geometry +100+100&
#EndFunction


##############################################################################
#now define the menus - defer bindings until later

Popup "office"
EndPopup

Popup "shell.choices"
#foo

EndPopup

Popup "Hosts"
	Popup	"Office"	office
	Popup	"Shell"		shell.choices
EndPopup
	
Popup "Shells"
        Title   "Shells"
	Exec    "Emergency mouse-only copy"  exec xterm -e /home/set/bin/em_save &
EndPopup

Popup "Screensaver"
        Title   "Screensaver"
        Exec    "Bat" 	 	exec xlock -nolock -nice 0 -mode bat &
        Exec    "Blank" 	exec xlock -nolock -nice 0 -mode blank &
	Exec	"Blot" 		exec xlock -nolock -nice 0 -mode blot &
        Exec    "Bob"   	exec xlock -nolock -nice 0 -mode bob &
	Exec	"Bounce" 	exec xlock -nolock -nice 0 -mode bounce &
        Exec    "Flame" 	exec xlock -nolock -nice 0 -mode flame &
        Exec    "Galaxy" 	exec xlock -nolock -nice 0 -mode galaxy &
	Exec	"Grav" 		exec xlock -nolock -nice 0 -mode grav &
	Exec	"Helix" 	exec xlock -nolock -nice 0 -mode helix &
        Exec    "Hop"   	exec xlock -nolock -nice 0 -mode hop   &
	Exec	"Hyper" 	exec xlock -nolock -nice 0 -mode hyper &
	Exec	"Kaleid" 	exec xlock -nolock -nice 0 -mode kaleid &
        Exec    "Life"  	exec xlock -nolock -nice 0 -mode life   &
        Exec    "Life3d"  	exec xlock -nolock -nice 0 -mode life3d   &
	Exec	"Maze" 		exec xlock -nolock -nice 0 -mode maze &
        Exec    "Pyro"  	exec xlock -nolock -nice 0 -mode pyro &
        Exec    "Qix"   	exec xlock -nolock -nice 0 -mode qix &
        Exec    "Random"	exec xlock -nolock -nice 0 -mode random &
	Exec	"Rect" 		exec xlock -nolock -nice 0 -mode rect &
	Exec	"Rock" 		exec xlock -nolock -nice 0 -mode rock &
        Exec    "Rotor" 	exec xlock -nolock -nice 0 -mode rotor &
	Exec	"Sphere" 	exec xlock -nolock -nice 0 -mode sphere &
	Exec	"Spline" 	exec xlock -nolock -nice 0 -mode spline &
        Exec    "Swarm" 	exec xlock -nolock -nice 0 -mode swarm &
        Exec    "Wator"  	exec xlock -nolock -nice 0 -mode wator &
        Exec    "Worm"  	exec xlock -nolock -nice 0 -mode worm &
	Exec	"World"	 	exec xlock -nolock -nice 0 -mode world &
EndPopup

Popup "Screenlock"
        Title   "Lock Screen"
        Exec    "Bat" 	 	exec xlock -nice 0 -mode bat &
        Exec    "Blank" 	exec xlock -nice 0 -mode blank &
	Exec	"Blot" 		exec xlock -nice 0 -mode blot &
        Exec    "Bob"   	exec xlock -nice 0 -mode bob &
	Exec	"Bounce" 	exec xlock -nice 0 -mode bounce &
        Exec    "Flame" 	exec xlock -nice 0 -mode flame &
        Exec    "Galaxy" 	exec xlock -nice 0 -mode galaxy &
	Exec	"Grav" 		exec xlock -nice 0 -mode grav &
	Exec	"Helix" 	exec xlock -nice 0 -mode helix &
        Exec    "Hop"   	exec xlock -nice 0 -mode hop   &
	Exec	"Hyper" 	exec xlock -nice 0 -mode hyper &
	Exec	"Kaleid" 	exec xlock -nice 0 -mode kaleid &
        Exec    "Life"  	exec xlock -nice 0 -mode life   &
        Exec    "Life3d"  	exec xlock -nice 0 -mode life3d   &
	Exec	"Maze" 		exec xlock -nice 0 -mode maze &
        Exec    "Pyro"  	exec xlock -nice 0 -mode pyro &
        Exec    "Qix"   	exec xlock -nice 0 -mode qix &
        Exec    "Random"	exec xlock -nice 0 -mode random &
	Exec	"Rect" 		exec xlock -nice 0 -mode rect &
	Exec	"Rock" 		exec xlock -nice 0 -mode rock &
        Exec    "Rotor" 	exec xlock -nice 0 -mode rotor &
	Exec	"Sphere" 	exec xlock -nice 0 -mode sphere &
	Exec	"Spline" 	exec xlock -nice 0 -mode spline &
        Exec    "Swarm" 	exec xlock -nice 0 -mode swarm &
        Exec    "Wator"  	exec xlock -nice 0 -mode wator &
        Exec    "Worm"  	exec xlock -nice 0 -mode worm &
	Exec	"World"	 	exec xlock -nice 0 -mode world &
EndPopup

Popup "Games"
        Title   "Games"
        Exec    "Maze"          exec maze &
        Exec    "Spider"        exec spider &
#        Exec    "Xcolormap"     exec xcolormap &
        Exec    "Workman"       exec workman &
#        Exec    "Xboard"        exec xboard &
        Exec    "Xcuckoo"       exec xcuckoo &
        Exec    "Xeyes"         exec xeyes &
        Exec    "Xhextris"      exec xhextris &
        Exec    "Xlander"       exec xlander &
        Exec    "Xlogo"         exec xlogo &
        Exec    "Xmahjongg"     exec xmahjongg &
        Exec    "Xroach"        exec xroach &
        Exec    "Xtetris"       exec xtetris &
        Exec    "Xvier"         exec xvier &
#        Exec    "Xbombs"        exec xbombs &
#        Exec    "Puzzle"        exec puzzle &
#        Exec    "Xgas"          exec xgas &
EndPopup

Popup "Applications"
        Title   "Applications"
	 Exec	 "Netscape"	 exec netscape -bg \#886 -fg \#eea &
#	 Exec    "XFmail"        exec xfmail -bg black -fg yellow &
#	 Exec    "Applix"        exec /opt/bin/applix &
#        Exec    "Xslite"        exec /usr/local/bin/xslite &
#        Exec    "fishtank"      exec xfishtank -c \#008 &
#        Exec    "Ghostview"     exec ghostview &
#        Exec    "GNU Emacs"     exec emacs &
#        Exec    "XEmacs"   	 exec xemacs &
#        Exec    "Seyon"         exec seyon -modem /dev/modem &
         Exec    "XV"            exec xv &
#        Exec    "X3270"         exec x3270 &
#        Exec    "Xedit"         exec xedit &
#        Exec    "Xfig"          exec xfig &
#        Exec    "Xfilemanager"  exec xfilemanager &
#        Exec    "Xfm"           exec xfm &
#        Exec    "Xfractint"     exec rxvt -font 7x14 -e xfractint map=chroma &
#        Exec    "Xgrab"         exec xgrab &
         Exec    "Xpaint"        exec xpaint &
#        Exec    "Xspread"       exec xspread &
#        Exec    "Xxgdb"         exec xxgdb &
EndPopup

Popup "Reboot-Verify"
	Title   "Really reboot Grease?"
	Nop     "No, no reboot"
	Exec    "Reboot now" exec /sbin/reboot &
EndPopup

# This menu is invoked as a sub-menu - it allows you to quit,
# restart, or switch to another WM.
Popup "Quit-Verify"
	Title	"Really Quit Fvwm?"
	Quit	"Yes, Really Quit"
        Restart "Restart Fvwm"	/usr/X11R6/bin/fvwm
	Restart "Go to XFCE"	/home/set/.xfcerc
#	Restart "Go to KDE"	/usr/bin/startkde
# 	Restart "Start mlvwm"	/usr/X11R6/bin/scwm
#	Popup   "Reboot Grease"	Reboot-Verify
#	Restart "Start fvwm2"	/usr/X11/bin/fvwm2
#       Restart "Start twm" 	twm
#       Restart "Start tvtwm" 	/usr/local/bin/tvtwm
#       Restart "Start mwm" 	mwm
#       Restart "Start gwm"     gwm
#       Restart "Start ctwm"    ctwm
#       Restart "Start olvwm" 	/usr/local/bin/folvwm
#       Restart "Start olwm" 	/usr/local/bin/folwm
#       The "-f" option has the focus follow the mouse, w/o needing to click.
        Nop	""
        Nop	"No, Don't Quit"
EndPopup

Popup "Fonts"
       Title "Font Utilities"
       Exec "Font Selector" exec xfontsel & 
EndPopup

# Provides a list of modules to fire off
Popup "Module-Popup"
	Title	"Modules"
	Module	"GoodStuff"	GoodStuff
	Module	"Clean-Up"	FvwmClean
	Module	"Identify"	FvwmIdent
	Module  "SaveDesktop"   FvwmSave
	Module	"Debug"		FvwmDebug
	Module  "Pager"         FvwmPager 0 3
	Module  "FvwmWinList"   FvwmWinList
EndPopup

Popup "Programs"
	Title "Programs"
	Exec	"Mozilla"	exec /usr/local/mozilla/mozilla &
#	Exec    "Netscape"      exec netscape -bg \#aa8 -fg \#221 &
        Exec    "Xv"            exec xv &
	Exec 	"AbiWord (English)"	exec abiword_en &
	Exec 	"AbiWord (Spanish)"	exec abiword_es &
#        Exec    "Star Office"   exec /home/set/office52/program/soffice  -bg \#aa8 -fg \#221 &
#        Exec    "Acrobat"       exec /usr/local/Acrobat4/bin/acroread &
#        Exec    "XFmail"        exec xfmail -bg black -fg yellow &
#        Exec    "Applix"        exec /opt/bin/applix &
#        Exec    "Xslite"        exec /usr/local/bin/xslite &
#	Exec 	"Xboard"        exec xboard -bg \#012 -fg \#ff2 -whitePieceColor \#aa6 -blackPieceColor \#66a -lightSquareColor \#440 -darkSquareColor \#004 -size small -ncp
#	Exec 	"GrandChess"        exec /usr/local/bin/grandchess -bg \#012 -fg \#ff2 -whitePieceColor \#aa6 -blackPieceColor \#66a -lightSquareColor \#440 -darkSquareColor \#004 -size small -ncp
#	Exec 	"FICS"        	exec xterm -fn 8x14 -bg \#012 -fg \#ff2 -geometry 80x36+0+0 -e xboard -bg \#004 -fg \#aa6 -whitePieceColor \#aa6 -blackPieceColor \#66a -lightSquareColor \#440 -darkSquareColor \#004 -size small -ics -telnet -telnetProgram /usr/local/bin/do.time
#	Exec 	"FICS"		exec /usr/local/bin/do.fics
EndPopup

# OK, BIG POPUP WINDOW (I should put this closer to the top)
# This menu will fire up some very common utilities
Popup "Utilities"
	Title 	"Go here"
# LCD screen
#	Exec    "Xterm"         exec xterm -fn 8x14 -bg \#012 -fg \#ff2 -geometry 80x36+0+0 -sb -sl 2000 -cr \#08f -fn lucidasanstypewriter-bold-14 &
# Normal monitor
# 	Exec    "Xterm"         xterm -cm -fn -misc-fixed-medium-r-normal--14-*-75-75-c-70-iso8859-3 -bg black -fg \#ffd &
# UTF-8
	Exec	"Xterm"		xterm -u8 -cm -fn "-misc-fixed-medium-r-normal--14-*-75-75-c-70-iso10646-1" -bg black -fg \#ffd
	Nop     ""
	Popup   "Programs"      Programs
#       Exec    "Top"           exec rxvt  -font 7x14 -T Top -n Top -e top &
#	Exec    "Xload" 	exec xload & 
#       Exec    "Netscape"      exec netscape -bg black -fg yellow &
#       Exec    "Ical"          exec ical &
#       Exec    "Applix"        exec /opt/bin/applix &
#       Exec    "Xslite"        exec /usr/local/bin/xslite &
#       Exec    "fishtank"      exec xfishtank -c \#008 &
#       Exec    "Tetris"        exec xtetris &
#       Exec    "GNU Emacs"     exec emacs &
#       Exec    "File manager"  exec moxfm &
#       Exec    "Calculator"    exec xcalc &
#       Exec    "Xman"          exec xman &
#       Exec    "Xmag"          exec xmag &
#       Exec    "Xclock"        exec xclock -update 1 -d &
        Nop     ""
#       Popup   "Font Utils"    Fonts
#	Popup	"Hosts"		Hosts	
#       Nop     ""
#       Popup   "Applications"  Applications
#       Nop     ""
#       Popup   "Shells"        Shells
#       Nop     ""
#       Popup   "Games"         Games
#       Nop     ""
#       Popup   "Screensaver"   Screensaver
#       Nop     ""
#       Popup   "Lock Screen"   Screenlock
#	Nop	""
#	Popup	"Modules"	Module-Popup
#	Nop	""
	Popup	"Exit Fvwm"	Quit-Verify
#       Nop     ""
        Exec    "Lock Screen" exec xlock
        Refresh "Refresh Screen"
EndPopup

# This defines the most common window operations
Popup "Window Ops"
	Title		"Window Ops"
	Function	"Move" 		Move-or-Raise
	Function 	"Resize" 	Resize-or-Raise
	Raise   	"Raise"
	Lower   	"Lower"
	Iconify 	"(De)Iconify" 
	Stick		"(Un)Stick"
	Function 	"(Un)Maximize"	maximize_func
	Nop     	""
	Destroy 	"Destroy"
	Delete  	"Delete"
	Nop		""
	Refresh		"Refresh Screen"
EndPopup

# A trimmed down version of "Window Ops", good for binding to decorations
Popup "Window Ops2"
	Function 	"Move"		Move-or-Raise
	Function  	"Resize" 	Resize-or-Raise
	Raise   	"Raise"
	Lower   	"Lower"
	Iconify 	"Iconify"
	Stick		"(Un)Stick"
	Nop     	""
	Destroy 	"Destroy"
	Delete  	"Delete"
	Nop 		""
	Module		"ScrollBar" 	FvwmScroll 2 2
EndPopup

#############################################################################
# One more complex function - couldn't be defined earlier because it used 
# pop-up menus
#
# This creates a motif-ish sticky menu for the title-bar window-ops
# pop-up
# Menu acts like normal twm menu if you just hold the button down,
# but if you click instead, the menu stays up, motif style
Function "window_ops_func"
	PopUp 	"Click"		Window Ops2
	PopUp	"Motion"	Window Ops2
# Motif would add
#       Delete  "DoubleClick"  
EndFunction


##############################################################################
# This defines the mouse bindings

# First, for the mouse in the root window
# Button 1 gives the Utilities menu
# Button 2 gives the Window Ops menu
# Button 3 gives the WindowList (like TwmWindows)
# I use the AnyModifier (A) option for the modifier field, so you can hold down
# any shift-control-whatever combination you want!

#     Button	Context Modifi 	Function
Mouse 1		R   	A       PopUp "Utilities"
Mouse 2		R    	A      	PopUp "Window Ops"
Mouse 3         R       A       WindowList
#Mouse 3		R    	A      	Module "winlist" FvwmWinList transient



# Now the title bar buttons
# Any button in the left title-bar button gives the window ops menu
# Any button in the right title-bar button Iconifies the window
# Any button in the rightmost title-bar button maximizes
# Note the use of "Mouse 0" for AnyButton.

# define some complex buttons, as a list of points
ButtonStyle : 1 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
ButtonStyle : 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1

#    Button 	        Context Modifi 	Function
#Mouse 0		1    	A      	Function "window_ops_func"
#Mouse 0		2    	A     	Function "maximize_func"
#Mouse 0		4    	A     	Iconify
# Now the title bar buttons
#     Button    Context Modifi  Function
Mouse 0     1       A       Iconify
Mouse 0     2       A       Close


# Now the rest of the frame
# Here I invoke my complex functions for Move-or-lower, Move-or-raise,
# and Resize-or-Raise. 
# Button 1 in the corner pieces, with any modifiers, gives resize or raise
#Mouse 1		F	A	Function "Resize-or-Raise"
# Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise
Mouse 1		T 	A	Function "Move-or-Raise"
#Mouse 1         W       A       Function "Move-or-Raise"
Mouse 1         S       A       Function "Resize-or-Raise"

# Button 1 in an icons gives move for a drag, de-iconify for a double-click,
# nothing for a single click
# Button 2 in an icon, w/ any modifiers, gives de-iconify

Mouse 1		I	A	Function "Move-or-Iconify"
Mouse 2		I	A	Iconify

# Button 2 in the corners, sides, or title-bar gives the window ops menu
Mouse 2		FST	A	Function "window_ops_func"
# Button 3 anywhere in the decoration (except the title-bar buttons)
# does a raise-lower
Mouse 3		TSIF	A	RaiseLower

# Button 3 in the window, with the Modifier-1 key (usually alt or diamond)
# gives Raise-Lower. Used to use control here, but that interferes with xterm
Mouse 3         W       M       RaiseLower

############################################################################
# Now some keyboard shortcuts.

# Arrow Keys
# press arrow + control anwhere, and scroll by 1 page

#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

# Changed to ALT for Quake and Xboard play, 
# changed back for monocrome LCD display

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

# press arrow + meta key, and scroll by 1/10 of a page
#Key Left	A	CM	CursorMove -10 +0
#Key Right	A	CM	CursorMove +10 +0
#Key Up		A	CM	CursorMove +0   -10
#Key Down	A	CM	CursorMove +0   +10

# press shift arrow + control anywhere, and move the pointer by 1% of a page
#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

# press shift arrow + meta key, and move the pointer by 1/10 of a page
#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 1           A       C       Desk 0 0
#Key 2           A       C       Desk 0 1

# Keyboard accelerators
#alt F1-F4 made non-alt so people used to the text-based Linux virtual pager get
#similar functionality here in X

#Key F1		A	N	Popup "Utilities"
#Key F2		A	N	Popup "Window Ops"
#Key F3		A	N	Module "WindowList" FvwmWinList 
#Key F4		A	N	Iconify
#Key F5		A	N	Move
#Key F6		A	N	Resize
#Key F7		A	N	CirculateUp
#Key F8		A	N	CirculateDown

#Hotkeys to quickly move you from window to window. Added by set, suggested by norby
Key F1         A       C       GotoPage 0 0
Key F2         A       C       GotoPage 0 1
Key F3         A       C       GotoPage 1 0
Key F4         A       C       GotoPage 1 1
#Key F5		A	N	GotoPage 0 0
#Key F6 	A	N	GotoPage 1 0
#Key F7		A	N	GotoPage 0 1
#Key F8		A	N	GotoPage 1 1

#Page Up/Dapge Down keys are used to scroll by one desktop page
# in any context, press page up/down + control
# in root context, just pressing page up/down is OK
# 
# I prefer the non-wrapping scroll. These are for example purposes only
#Key Next	A       C       Scroll 100000 0
#Key Next	R       N       Scroll 100000 0  
#Key Prior	A       C       Scroll -100000 0
#Key Prior	R       N       Scroll -100000 0


############################################################################
############################################################################
#Definitions used by the modules

###################### GoodStuff button-bar ################################
# Colors
*GoodStuffFore #000000
*GoodStuffBack #c5c2a4

# Font
*GoodStuffFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
# Geometry - really likes to pick its own size, but giving a position is OK
#*GoodStuffGeometry 65x25+717+414
#*GoodStuffGeometry 66x25-1-146
*GoodStuffGeometry 33x98-1-72

# Layout: specify rows or columns, not both
*GoodStuffColumns 1

# Define the buttons to use.....
#*GoodStuff Kill    rbomb.xpm    Destroy

# xterm or rxvts on remote machines can be done like this
# Output re-direction is csh style, not sh style
# You will want to substitute your own hosts here!

#*GoodStuff Dopey   rterm.xpm   Exec "dopey" rsh dopey "exec xterm -T dopey -display $HOSTDISPLAY </dev/null >&/dev/null & "&
#*GoodStuff Grumpy  rterm.xpm   Exec "grumpy" rsh grumpy "exec xterm -T grumpy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
#*GoodStuff Snoopy  rterm.xpm   Exec "snoopy" rsh snoopy "exec xterm -T snoopy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
#*GoodStuff Xcalc   rcalc.xpm   Exec "Calculator" xcalc &
#*GoodStuff mail    mail2.xpm    Exec "xmh" xmh &

#*GoodStuff Paging  clamp.xpm   TogglePage
#*GoodStuff xclock  clock.xpm   Swallow "xclock" xclock -bg \#908090 -geometry -1500-1500 -padding 0 &
#*GoodStuff(4x1) - "" SwallowModule "FvwmPager" FvwmPager 0 3
# Disabled 2000/03/20 because we only need to have a single desktop
#*GoodStuff Hug "" Desk 0 0
#*GoodStuff Kiss "" Desk 0 1
#*GoodStuff 3 "" Desk 0 3
#*GoodStuff 4 "" Desk 0 4
*GoodStuff AbiEn "" Exec "AbiWord" abiword_en &
*GoodStuff AbiEs "" Exec "AbiWord" abiword_es &
*GoodStuff Gimp "" Exec "Gimp" gimp &
*GoodStuff Moz "" Exec "mozilla-bin" /usr/local/mozilla/mozilla &
*GoodStuff Term "" Exec "xterm" xterm -u8 -cm -fn "-misc-fixed-medium-r-normal--14-*-75-75-c-70-iso10646-1" -bg black -fg \#ffd &

######################### No Clutter ########################################
# I only wrote NoClutter as a simple test case, but maybe some big sites like
# universities really have usage problems (too many open windows)....
# Time delays are in seconds.
#*FvwmNoClutter 3600 Iconify 1
#*FvwmNoClutter 86400 Delete
#*FvwmNoCLutter 172800 Destroy

########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

########################### Pager #########################################
#*FvwmPagerBack #908090
#*FvwmPagerFore #484048
#*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
#*FvwmPagerHilight #cab3ca
#*FvwmPagerGeometry -1-1
#*FvwmPagerLabel 0 Misc
#*FvwmPagerLabel 1 FrameMaker
#*FvwmPagerLabel 2 Mail
#*FvwmPagerLabel 3 Matlab
#*FvwmPagerSmallFont 5x8
*FvwmPagerFont     -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerSmallFont 5x8
*FvwmPagerBack SlateGray
*FvwmPagerHilight Black
*FvwmPagerFore Gray
*FvwmPagerRows 1
*FvwmPagerColumns 4
*FvwmPagerDeskTopScale 72
*FvwmPagerLabel 0 Home
*FvwmPagerLabel 1 Misc
*FvwmPagerLabel 2 Web
*FvwmPagerLabel 3 Graphics

##########################FvwmWinList##################################
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1

#Sam stuff
CirculateSkip xload 
CirculateSkip xclock
CirculateSkip xconsole
CirculateSkip Take my will and my life                                      
CirculateSkip Guide me in my recovery
CirculateSkip Show me how to live clean
CirculateSkip Pager