#!/usr/sbin/install-menu

compat = "menu-1"
!include menu.h

genmenu = "menudefs.hook"
rootprefix = "/etc/X11/aewm/"
userprefix = "/.aewm/"
treewalk = "(M)"
mainmenutitle="Debian"
rootsection="/Debian"

function cmd($t, $c) = nstring(level(), "	") "cmd \"" esc($t, "\"") "\" \"" esc($c, "\"") "\"\n"

supported
     x11 = cmd($title, $command)
      wm = cmd($title, "skill aewm && " $command)
    text = cmd($title, "x-terminal-emulator -T '" $title "' -e " $command)
endsupported

preoutput = "# Generated by update-menus\n"

submenutitle = ""
startmenu = nstring(level(), "	") "menu \"" esc($title,"()") "\"\n"
endmenu = nstring(level(), "	") "end\n"
