blob: 50ccfadce1b35e4dcc4fb6695f0ce71277bd92a9 (
plain)
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
|
#!/usr/bin/install-menu
!include menu.h
compat="menu-1"
function menufilename($s) = ifempty($s,"debian") replacewith($s," /","_.") ".menu"
function runmenu($s) = "/etc/X11/ratpoison/ratpoisonmenu \"" esc(menufilename($s),"\"") "\""
startmenu=""
genmenu=menufilename(ifelse($command,parent($section),parent($section)))
endmenu=""
rootsection="debian"
rootprefix="/var/lib/ratpoison/menu"
userprefix=".ratpoison_menu"
treewalk="(m)c"
function q($s) = replacewith($s,":",".")
supported
ratpoisonspecial = "\\" q(title()) ":exec " $command "\n"
x11 = "\\" q(title()) ":exec " $command "\n"
text= "\\" q(title()) ":exec " term() "\n"
wm= "\\" q(title()) ":exec /usr/bin/ratpoison -c \"newwm " esc($command,"\"") "\"\n"
endsupported
submenutitle= "\\" q(title()) ":exec " runmenu($section) "\n"
preoutput="#Automatically generated file. Do not edit (see /usr/share/doc/menu/html)\n#\n"
|