/*
 * 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
 *	OPEN_MENU - opens a menu from a file or directory contents 
 *	END  - end (sub)menu definition
 *	WORKSPACE_MENU - adds a submenu for workspace operations
 *	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)
 *	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)
 *
 * <Parameters> is the program to execute.
 *
 * ** Options for command line in EXEC:
 * %s - substitute with current selection
 * %a(message) - opens a input box with the message and do substitution with
 *		what you typed
 * %w - substitute with XID for the current focused window
 *
 * You can override special characters (as % and ") with the \ character:
 * ex: xterm -T "\"Hello World\""
 *
 * You can also use character escapes, like \n
 *
 * Each MENU statement must have one mathching END statement at the end. 
 * Example:
 *
 * "Test" MENU
 *	"XTerm" EXEC xterm
 *		 // creates a submenu with the contents of /usr/openwin/bin
 *	"XView apps" OPEN_MENU "/usr/openwin/bin"
 *		// inserts the style.menu in this entry
 *	"Style" OPEN_MENU style.menu
 * "Test" END
 */

#include "wmmacros"

"Debian" MENU
#include "menu.hook"

	"Workspaces" WORKSPACE_MENU

	"Selection" MENU
		"Copy" EXEC echo '%s' | wxcopy
		"Mail To" EXEC TERM(mail,Pine,pine '%s')
		"Navigate" EXEC netscape %s
		"Search in Manual" EXEC TERM(man,Manual Browser,man %s)
	"Selection" END

	"Workspace" MENU
		"Hide Others" HIDE_OTHERS
		"Show All" SHOW_ALL
		"Arrange Icons" ARRANGE_ICONS
		"Refresh" REFRESH
		"Save Workspace" EXEC SAVE_WORKSPACE
	"Workspace" END

	"Appearance" OPEN_MENU appearance.menu

	"WindowMaker" MENU
		"Copyright..." EXEC xmessage -center -font variable -title \
		  'WindowMaker 'WM_VERSION -file /usr/doc/wmaker/copyright
		"Restart" RESTART
		"Exit..."  EXIT 
		"Exit session..." SHUTDOWN
	"WindowMaker" END
"Debian" END


