# This file is in the public domain. Anyone is free to copy, modify, publish
# use, sell or distribute for any purpose, commercial or non-commercial, and by
# any means.

INCLUDE = "vars"

INCLUDE = "$_PEKWM_ETC_PATH/menu_windowmenu"

RootMenu = "pekwm" {
	Entry = "_Terminal" { Actions = "Exec $TERM" }
	Entry = "_Run.." { Actions = "ShowCmdDialog" }

	Separator {}

	Entry = "_Browser" { Actions = "Exec $BROWSER" }
	Entry = "_Editor" { Actions = "Exec $EDITOR" }
	Entry = "_File Manager" { Actions = "Exec $FILEMANAGER" }

	Separator {}

	Entry = "Take _Screenshot" { Actions = "Exec pekwm_screenshot" }

	Separator {}

	Submenu = "_Go to" {
		SubMenu = "_Workspace" {
			# Create goto menu once per pekwm config reload. The fast way that
			# will work for most if not all users.
			COMMAND = "$_PEKWM_SCRIPT_PATH/pekwm_ws_menu.sh goto"
			# Create goto menu every time the menu is opened. The slow way.
			# This is what you want if you are using external tools to make
			# the amount of workspaces something else than what you define in
			# ~/.pekwm/config. You will know if you want this.
			# Entry = "" { Actions = "Dynamic $_PEKWM_SCRIPT_PATH/pekwm_ws_menu.sh goto dynamic" }
		}
		Entry = "W_indow.." { Actions = "ShowMenu GotoClient True" }
	}

	Submenu = "_pekwm" {
		Submenu = "_Themes" {
			Entry { Actions = "Dynamic $_PEKWM_SCRIPT_PATH/pekwm_themeset.sh $_PEKWM_THEME_PATH" }
			Entry { Actions = "Dynamic $_PEKWM_SCRIPT_PATH/pekwm_themeset.sh $_PEKWM_CONFIG_PATH/themes" }
		}
		Entry = "_Reload" { Actions = "Reload" }
		Entry = "Re_start" { Actions = "Restart" }
		Entry = "Exit" { Actions = "Exit" }
		Submenu = "_Exit to" {
			Entry = "Xterm" { Actions = "RestartOther xterm" }
			Entry = "TWM" { Actions = "RestartOther twm" }
		}
	}
}
