File: menu-method

package info (click to toggle)
vtwm 5.4.5a-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,336 kB
  • ctags: 1,720
  • sloc: ansic: 16,684; yacc: 805; lex: 108; makefile: 42; sh: 31
file content (34 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (2)
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
#!/usr/sbin/install-menu
#   -*- mode: shell-script; -*-
#I need menu-1!
#
#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

compat="menu-2"

function f($com)="  \"" esc(title(),"\"") "\"    f.exec  \""esc($com,"\"") " &\"\n";

#This doens't seem to be possible with vtwm:  wm="f.restart \"${title}\"\\n"
supported;
  x11= f($command);
  text=f(term());
#  x11 = "  \"" $title "\"    f.exec  \""$command " &\"\n";
#  text= "  \"" $title "\"    f.exec  \"xterm -title \\\""
#               $title "\\\" -e " esc($command,"\"") " &\"\n";
endsupported;
startmenu=   "menu \"" $section "\"\n{\n";
endmenu=     "}\n";
submenutitle="  \"" title() "\" f.menu \"" $section "\"\n";
genmenu=      "menudefs.hook";
rcfile=       "system.vtwmrc";
examplercfile="system.vtwmrc-menu";
rootprefix=   "/etc/X11/vtwm/";
userprefix=   "/.vtwm/";