summaryrefslogtreecommitdiff
path: root/debian/menu-method
diff options
context:
space:
mode:
authorbrl <brl>2006-11-21 16:54:49 +0000
committerbrl <brl>2006-11-21 16:54:49 +0000
commit41ee1578d0b079b60a224ad8a595af42b86b0c72 (patch)
tree3d1cfff1f41e9356d0fb38a90605ceef8b39f6ed /debian/menu-method
parent59dd6a0795dd27192e5c9e63a1d2648bce559326 (diff)
downloadratpoison-41ee1578d0b079b60a224ad8a595af42b86b0c72.zip
update debian/ directory
Diffstat (limited to 'debian/menu-method')
-rw-r--r--debian/menu-method27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/menu-method b/debian/menu-method
new file mode 100644
index 0000000..50ccfad
--- /dev/null
+++ b/debian/menu-method
@@ -0,0 +1,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"