1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!./menu-method
# -*- mode: shell-script; -*-
#I need menu-1.4!
#
#NOTE: the first line of this script _must_ be
# equal to "#!/usr/sbin/install-menu", otherwise update-menus
# will feed this script old-compat-mode data.
#
#More info: /usr/doc/menu/html.
#
compat="menu-1"
!include menu.h
function start($var,$com)=\
"+ \"" escfirst(title(),$hotkey,"&") \
cond_surr(icon(),"%","%") "\" " $var " " $com "\n"
supported
fvwm2module= start("", $command)
fvwmmodule= start("Exec", $command)
wm= start("Restart",$command)
x11fvwm2= start("Exec", $command)
x11= start("Exec", $command)
text= start("Exec", term())
endsupported
startmenu= "DestroyMenu \"" $section "\"\nAddToMenu \"" \
$section "\" \"" title() "\" Title\n"
endmenu= "\n"
submenutitle= "+ \"" escfirst(title(),$hotkey,"&") \
cond_surr(icon(),"%","%") "\" PopUp " $section "\n"
genmenu= "menudefs.hook"
rootprefix="/etc/X11/fvwm2/"
userprefix="/.fvwm2/"
treewalk="c(m)"
mainmenutitle="Main Menu"
#this is just as an example of what is possible, I don't think
#this should go into the default fvwm2:
#postrun="killall -USR1 /usr/X11R6/bin/fvwm2"
|