//
// Root Menu definition for WindowMaker
//
// Syntax is:
//
// <Title> <Command> <Parameters>
//
// <Title> is any string to be used as title. Must be enclosed with " if it
// 	has spaces
//
// <Command> one of the valid commands: 
//	MENU - starts (sub)menu definition
//	END  - end (sub)menu definition
//	EXEC <program> - executes an external program
//	EXIT - exits the window manager
//	RESTART [<window manager>] - restarts WindowMaker or start another
//			window manager
//	REFRESH - refreshes the desktop
//	ARRANGE_ICONS - rearranges the icons on the workspace
//	SHUTDOWN - kills all clients (and close the X window session)
//	WORKSPACE_MENU - adds a submenu for workspace operations
//	SHOW_ALL - unhides all windows on workspace
//	HIDE_OTHERS - hides all windows on the workspace, except the
//		focused one (or the last one that received focus)
//	RENAME_WS <string> - change name of the current workspace
//
// <Parameters> is the program to execute.
//
// ** Options for command line in EXEC:
// %s - substitute with current selection. If no selection is available, the
//	command is aborted
// %w - substitute with the current selected window ID. If no window is 
//	selected, empty is returned 
// 
// You can override special characters (as % and ") with the \ character:
// ex: xterm -T "\"Hello World\""
//
// Each MENU statement must have one mathching END statement at the end. 
// See example:


#include <wmmacros>

"BIG_COW" MENU
	"Info" MENU
		"Copyright..." EXEC xmessage -center -font variable -title \
    'WindowMaker 'WM_VERSION -file $HOME/gnustep/Library/WindowMaker/Copyright
		"System Load" EXEC xosview || xload
		"Process List" EXEC xterm -e top
		"Manual Browser" EXEC xman
	"Info" END
	"XTerm" EXEC nxterm || color-xterm || xterm
	"XJed"	EXEC xjed 
	"Workspaces" WORKSPACE_MENU
	"Applications" MENU
		"Graphics" MENU
			"Gimp" EXEC gimp
			"XV" EXEC xv
			"XPaint" EXEC xpaint
			"XFig" EXEC xfig
		"Graphics" END
		"X File Manager" EXEC xfm
		"OffiX Files" EXEC files
		"LyX" EXEC lyx
		"Netscape" EXEC netscape 
  		"Ghostview" EXEC ghostview GETFILE(Ghostview)
                "XDvi" EXEC xdvi GETFILE(XDvi)
		"Acrobat" EXEC /usr/local/Acrobat3/bin/acroread GETFILE(Acrobat)
  		"TkDesk" EXEC tkdesk
	"Applications" END
	"Editors" MENU
		"XEmacs" EXEC xemacs || emacs
		"XJed" EXEC xjed
		"NEdit" EXEC nedit
		"Xedit" EXEC xedit
		"VI" EXEC xterm -e vi
	"Editors" END
	"Miscellaneous" MENU
		"Xmcd" EXEC xmcd 2> /dev/null
		"Xplaycd" EXEC xplaycd
		"Xmixer" EXEC xmixer
	"Miscellaneous" END
	"Utils" MENU
		"Calculator" EXEC xcalc
		"Font Chooser" EXEC xfontsel
		"Magnify" EXEC xmag
		"Colormap" EXEC xcmap
		"XKill" EXEC xkill
		"ASClock" EXEC asclock -shape
		"Clipboard" EXEC xclipboard
	"Utils" END

	"Selection" MENU
		"Mail To" EXEC xterm -name mail -T "Pine" -e pine %s
	        "Navigate" EXEC netscape -noraise -remote \
			'openURL(%s,new-window)' || netscape %s
		"Search in Manual" EXEC MANUAL_SEARCH(%s)
	"Selection" END

	"Workspace" MENU
		"Rename" RENAME_WS %s
		"Hide Others" HIDE_OTHERS
		"Show All" SHOW_ALL
		"Arrange Icons" ARRANGE_ICONS
		"Refresh" REFRESH
		"Lock" EXEC xlock -allowroot -usefirst -mode hyper
		"Background" MENU
			"None" EXEC CLEARROOT
/*
#if (DEPTH>=8)
			"Patterns" MENU
				"DeepSea" EXEC IMAGEROOT(sea.gif)
				"Horizon" EXEC IMAGEROOT(horizon.gif)
				"Skyline" EXEC IMAGEROOT(sky.gif)
			"Patterns" END
#endif
*/
			"Black" EXEC SOLIDROOT(black)
			"Blue" EXEC SOLIDROOT("#505075")
			"Purple" EXEC SOLIDROOT("#554466")
			"Wheat" EXEC SOLIDROOT(wheat4)
			"Dark Gray" EXEC SOLIDROOT("#333340")
			"Wine" EXEC SOLIDROOT("#400020")
		"Background" END
#if (DEPTH>8)
// Setup some gradient schemes for newbies and lazy people
// You must RESTART after selecting the gradient.
#include <gradients.menu>
#endif
		"Save Workspace" EXEC SAVE_WORKSPACE
	"Workspace" END
	
#if (UID==0)	// root only stuff
	"System" MENU
		// the RedHat control panel program
		"RH ControlPanel" EXEC control-panel
	"System" END
#endif
	"Exit"	MENU
		"Restart" RESTART
		"Exit..."  EXIT
		"Exit session..." SHUTDOWN
	"Exit" END
"Applications" END
