]> git.decadent.org.uk Git - ion3.git/blobdiff - debian/particleman.menu-method
Started renaming.
[ion3.git] / debian / particleman.menu-method
diff --git a/debian/particleman.menu-method b/debian/particleman.menu-method
new file mode 100644 (file)
index 0000000..0e43fc7
--- /dev/null
@@ -0,0 +1,38 @@
+#!/usr/bin/install-menu
+# by Iwan Heskamp <iwan@hetwasietsmet.nl>
+# http://tdm120.el.utwente.nl/~hkp/pwm/
+# Modified for Ion by Per Olofsson <pelle@dsv.su.se>
+
+compat="menu-1"
+
+!include menu.h
+
+compat="menu-2"
+
+outputencoding="ISO-8859-1";
+
+function q($arg) = esc($arg, "\\\"");
+function qc($arg) = esc($arg, "\\'");
+
+function entry($action)="    menuentry(\"" q(title()) "\", \""
+       q($action) "\"),\n";
+function entry_exec($command)=entry("ioncore.exec('" qc($command) "')");
+
+supported;
+   x11  = entry_exec($command);
+   wm   = entry("ioncore.restart_other('" qc($command) "')");
+   text = entry_exec(term());
+endsupported;
+
+
+startmenu="defmenu(\"" $section "\", {\n";
+endmenu="})\n\n";
+genmenu="debian-menu.lua";
+submenutitle="    submenu(\"" $title "\", \"" $section "\"),\n";
+preoutput="\n";
+mainmenutitle="Debian";
+rootsection="Debian";
+rootprefix="/var/lib/particleman/";
+userprefix="/.ion3/";
+
+preoutput= "-- Automatically generated file. Do not edit.\n-- (See /usr/share/doc/menu/menu.txt.gz)\n\n";