diff options
Diffstat (limited to 'debian/menu-method')
-rw-r--r-- | debian/menu-method | 27 |
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" |