home *** CD-ROM | disk | FTP | other *** search
- #!/usr/sbin/install-menu
- #I need menu-1!
- #
- #NOTE: the first line of this script _must_ be
- # equal to "#!/usr/sbin/install-menu", otherwise update-menus
- # will feed this script old-compat-mode data.
- #
- #More info: /usr/doc/menu/README.
- #
- compat="menu-1"
- supported
- # fvwm2module="+ \"" escfirst($title,$hotkey,"&") \
- # cond_surr($icon,"%","%") "\" " $command "\n"
- fvwm95module="+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" " $command "\n"
- fvwmmodule= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" Exec " $command "\n"
- wm= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" Restart " $command "\n"
- x11fvwm2= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" Exec " $command "\n"
- x11= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" Exec " $command "\n"
- text= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\"" \
- " Exec /usr/bin/X11/xterm -T \"" $title "\" -e " $command "\n"
- endsupported
-
- # The following menu definitions are copied directly from fvwm2,
- # since the fvwm2 debian package had at the time a really
- # nice menu setup. Don't you just love free software?
-
- #BEGIN CRIBBED PORTION
- # Ok, "startmenu" is a little wacky, and comes in 4 parts:
- # 1. If this is running for a user, then we do a DestroyMenu to
- # clear out the system one. Furthermore, if we're dealing with the
- # top-level /Debian menu, then add a title for it (normally done in
- # system.fvwm2rc), and re-read the main-menu-pre.hooks whose results
- # we merrily blew away earlier. This is so that the
- # main-menu-pre.hooks work for users as well as system-wide. Of
- # course, none of this happens if we're running as root to produce the
- # system-wide menudef.hook file.
- # 2. We spit out an "AddToMenu /Foo/Bar/Baz" to start this menu.
- # 3. We add the title to the menu if this isn't the /Debian menu
- # (since that title comes from the system.fvwm2rc).
- # 4. We add a trailing newline to the lot.
- startmenu= ifroot("", \
- "DestroyMenu \"" $section "\"\n" \
- ifeq($section, "/Debian", \
- "AddToMenu \"/Debian\" \"Main Menu\" Title\n" \
- "Read /etc/X11/fvwm2/main-menu-pre.hook\n" \
- "Read .fvwm2/main-menu-pre.hook\n")) \
- "AddToMenu \"" $section "\"" \
- ifnempty($title, " \"" $title "\" Title") \
- "\n"
- endmenu= "\n"
- submenutitle= "+ \"" escfirst($title,$hotkey,"&") \
- cond_surr($icon,"%","%") "\" PopUp " $section "\n"
- #END CRIBBED PORTION
- genmenu= "menudefs.hook"
- rootprefix= "/etc/X11/fvwm95/"
- userprefix= "/.fvwm95/"
- # I know it's the default, but just in case:
- treewalk= "c(m)"
-
- #If you want your fvwm95 sessions to be automatically restarted when you
- #upgrade your debian menus, uncomment the next line:
- #postrun="killall -USR1 /usr/X11R6/bin/fvwm95"
-