File: menu-method

package info (click to toggle)
blackbox 0.51.3-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,168 kB
  • ctags: 1,307
  • sloc: cpp: 10,982; ansic: 476; sh: 370; makefile: 291; perl: 128
file content (29 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
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
#!/usr/sbin/install-menu
#
# Generates blackbox menus for all registered applications.
compat="menu-1"

!include menu.h

genmenu="blackbox-menu"
rootprefix="/etc/X11/blackbox/"
userprefix=""
treewalk=(M)
#rootsection="/Debian"

supported
    x11=   "  [exec] (" esc($title, "()") ") {" esc($command, "()") "}\n" 
    wm=	   "  [restart] ("  esc($title, "()")  ")  {" esc($command, "()") "}\n" 
    text=  "  [exec] (" esc($title, "()") ") { xterm -T \"" esc($title, "()") "\" -e " esc($command, "()") "}\n"
    blackbox= "[" esc($command, "()") "] (" esc($title, "()") ")\n"
endsupported

preoutput= \
  "# Automatically generated file. Do not edit (see /usr/share/doc/menu/README)\n\n\n\nDebian MENU\n\n"
postoutput= \
   "\nDebian END\n"

startmenu= " [begin] (Debian)\n"
submenutitle= "[submenu] (" esc($title,"()") ") {" esc($longtitle,"()") "}\n"
endmenu= "[end]\n"