#!/usr/sbin/install-menu
# by Iwan Heskamp <iwan@hetwasietsmet.nl>
# http://tdm120.el.utwente.nl/~hkp/pwm/
compat="menu-1"

!include menu.h

compat="menu-2"

outputencoding="LOCALE"

#  x11=	         "  entry \"" $title "\" , \"exec\", \"" $command"\"\n";
function f($com)="  entry \"" esc(title(),"\"") "\", \"exec\",  \""esc($com,"\"") "\"\n";

supported;
  x11= f($command);
  wm=   "  entry \"" $title "\", \"restart_other\", \"" $command"\"\n";
  pwm=  "  entry \"" $title "\", \"" $command "\"\n";
  text=f(term());
endsupported;


startmenu="menu \"" $title "\", \"" $title "\" {\n";
endmenu="}\n\n";
genmenu="menu-debian.conf";
submenutitle="  submenu \"" $title "\"\n";
preoutput="\n";
rootprefix="/etc/X11/pwm/";
mainmenutitle="Debian Menu";
userprefix="/.pwm/";

preoutput= "# Automatically generated file.  Do not edit\n# (See /usr/share/doc/menu/README)\n\n";
