summaryrefslogtreecommitdiff
path: root/examples/fvwm95
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/fvwm95
downloadmenu-debian/2.1.46.tar.gz
Imported Debian version 2.1.46debian/2.1.46
Diffstat (limited to 'examples/fvwm95')
-rwxr-xr-xexamples/fvwm9548
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/fvwm95 b/examples/fvwm95
new file mode 100755
index 0000000..57c68fd
--- /dev/null
+++ b/examples/fvwm95
@@ -0,0 +1,48 @@
+#!/usr/bin/install-menu
+#I need menu-1!
+#
+#I seem not to have fvwm95 installed, so I havent actually tested this.
+#
+#
+#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 sup($com)="+ \"" escfirst(title(), $hotkey, "&")
+ cond_surr(icon(), "%", "%") "\" " $com "\n";
+
+
+supported;
+ fvwm2module= sup( $command);
+ fvwmmodule= sup("Exec " $command);
+ wm= sup("Restart " $command);
+ x11fvwm2= sup("Exec " $command);
+ x11= sup("Exec " $command);
+ text= sup(term() );
+endsupported;
+
+startmenu= "DestroyMenu \"" $section "\"\nAddToMenu \""
+ $section "\" \"" $title "\" Title\n";
+
+endmenu= "\n";
+submenutitle= "+ \"" escfirst($title,$hotkey,"&")
+ cond_surr($icon,"%","%") "\" PopUp " $section "\n";
+genmenu= "menudefs.hook";
+rootprefix="/etc/X11/fvwm95/";
+userprefix="/.fvwm95";
+treewalk="c(m)";
+mainmenutitle="Main Menu";
+
+#this is just as an example of what is possible, I don't think
+#this should go into the default fvwm95:
+# postrun="killall -USR1 /usr/X11R6/bin/fvwm95";
+
+