summaryrefslogtreecommitdiff
path: root/examples/fvwm
diff options
context:
space:
mode:
authorBill Allombert <ballombe@debian.org>2011-11-16 12:33:27 +0100
committerIgor Pashev <pashev.igor@gmail.com>2013-03-05 16:39:28 +0000
commitdd7279795c97aa356727d366a2149c9bc838b496 (patch)
treea87d19d2e5220f5b38aec3b5b036235a59f971c9 /examples/fvwm
downloadmenu-debian/2.1.46.tar.gz
Imported Debian version 2.1.46debian/2.1.46
Diffstat (limited to 'examples/fvwm')
-rwxr-xr-xexamples/fvwm37
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/fvwm b/examples/fvwm
new file mode 100755
index 0000000..fdb341a
--- /dev/null
+++ b/examples/fvwm
@@ -0,0 +1,37 @@
+#!/usr/bin/install-menu
+# -*- mode: shell-script; -*-
+#I need menu-1.4!
+#
+#NOTE: the first line of this script _must_ be
+# equal to "#!/usr/bin/install-menu", otherwise update-menus
+# will feed this script old-compat-mode data.
+#
+#More info: /usr/share/doc/menu/html.
+#
+compat="menu-1"
+
+!include menu.h
+
+compat="menu-2"
+
+function ex($com)=" Exec \"" title() "\" exec " $com "\n";
+function mod($var,$com) =" " $var " \"" title() "\" exec " $com "\n";
+
+supported;
+ fvwmmodule= mod("Exec", $command);
+ wm= mod("Restart",$command);
+ x11fvwm= ex($command);
+ x11= ex($command);
+ text= ex(term());
+endsupported;
+
+startmenu= "PopUp \"" $section "\"\n";
+endmenu= "EndPopUp\n";
+submenutitle=" Popup \"" title() cond_surr(icon(),"%","%") "\""
+ $section "\n";
+genmenu= "menudefs.hook";
+rcfile= "system.fvwmrc";
+examplercfile="system.fvwmrc-menu";
+rootprefix="/etc/X11/fvwm/";
+userprefix=".fvwm/";
+mainmenutitle="DebianMenu";