Menus

#now define the menus - defer bindings until later

# 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"	fvwm
	Restart "Start twm" 	twm
	Restart "Start tvtwm" 	tvtwm
	Restart "Start mwm" 	mwm
	Restart "Start olwm" 	/usr/openwin/bin/olwm
	Nop	""
	Nop	"No, Don't Quit"
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 0
	Module  "FvwmWinList"   FvwmWinList
EndPopup

Popup "Apps"
        Exec    "Netscape"      exec netscape &
        Exec    "Mosaic"        exec Mosaic &
	Exec    "Arena"         exec arena &
	Nop     ""
        Exec    "slrn"          exec xterm -e slrn &
        Exec    "exmh"          exec exmh &
        Exec    "Pine"          exec xterm -e pine &
        Exec    "Elm"           exec xterm -e elm &
	Nop     ""
        Exec    "TkMan"         exec tkman &
        Exec    "TkInfo"        exec tkinfo &
        Exec    "Emacs"         exec emacs &
        Exec    "Emacs nox"     exec xterm -e emacs-nox &
	Exec    "Jed"           exec xterm -e jed &
	Nop     ""
        Exec    "X File Manager" exec xfm &
        Exec    "xpaint"        exec xpaint &
        Exec    "xfig"          exec xfig &
# Why doesn't this work?
#        Exec    "ImageMagick"   exec display &
        Exec    "xv"            exec xv &
	Nop     ""
        Exec    "wish"          exec xterm -e wish &
        Exec    "Python"        exec xterm -e python &
EndPopup

Popup "Games"
        Exec    "Hextris"       exec cxhextris &
	Exec    "xbill"         exec xbill &
	Exec    "Chess"         exec xboard &
	Exec    "xchomp"        exec xchomp &
	Exec    "Minesweeper"   exec xdemineur &
	Exec    "Backgammon"    exec xgammon &
	Exec    "xjewel"        exec xjewel &
	Exec    "xlander"       exec xlander &
	Exec    "xsnow"         exec xsnow &
	Exec    "Tetris"        exec xtetris &
	Exec    "Trojka"        exec xtrojka &
EndPopup

Popup "Utils"
	Exec    "Top"		exec xterm -T Top -n Top -e top &
	Exec	"Calculator"	exec xcalc &
	Exec	"Xman"		exec xman &
	Exec	"Xmag"		exec xmag &
	Exec    "xosview"       exec xosview &
EndPopup

# This menu will fire up some very common utilities
Popup "Utilities"
	Title 	"Program Menu"
	Exec    "Xterm"		exec xterm -e bash &
	Exec    "Rxvt"		exec rxvt -bg Black -fg Wheat &
	Exec	"Color Xterm"	exec xterm-color &
	Nop	""
	Exec    "Control Panel" exec control-panel &
	Exec    "Glint"         exec glint &
	Nop	""
	Popup   "Applications"  Apps
	Popup   "Games"         Games
	Popup   "Utilities"     Utils
	Popup	"Modules"	Module-Popup
	Nop	""
        Restart "Restart Fvwm"  fvwm
	Popup	"Exit Fvwm"	Quit-Verify
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"
	Close	  	"Close"
	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"
	Close	  	"Close"
	Nop 		""
	Module		"ScrollBar" 	FvwmScroll 2 2
EndPopup

 


Last Modified: 14 June 1997

St. Louis Unix Users Group - Linux SIG