Bradmont
03-05-2001, 06:26 PM
Would you please post your /etc/X11/blackbox/blackbox-menu?
I installed X v4 (without apt), and the menu wasn't autocreated. I need an example to use as a template.
Thanks.
<edit>Forgot the hyphen</edit>
[ 05 March 2001: Message edited by: Bradmont ]
FORTRAN gy
03-05-2001, 06:51 PM
I took the example and started modifying it. It's a work in progress, but you should get the idea:
# This is the default menu file for Blackbox 0.33.0 and up
#
# Lines beginning with the '#' character are ignored.
#
# The new syntax is simpler than the old X resource format...
# Each menu item consists of 2 or 3 fields:
#
# [command] (label) {data}
#
# where [command] is one of:
#
# [begin] [end] [exec] [exit] [reconfig] [restart] [submenu] [style] [include]
#
# [begin] is used for the top level menu
# [submenu] is used for submenus
# [end] must be used with BOTH [begin] and [submenu] to tell the parser to stop
# reading from the file.
#
# [exec] (label) {string}
# This will insert an item that runs a program.
#
# [exit] (label)
# This will insert an item that exits the window manager.
#
# [reconfig] (label) {string}
# This will insert an item that tells blackbox to re-read it's configuration
# files. {string} is optional, and if supplied, will execute the string with
# /bin/sh -c before the reconfiguration is performed. (this is helpful for
# writing multiple config files and switching between them)
#
# [restart] (label) {string}
# This will insert an item to restart the window manager. {string} is
# optional, and if omitted, blackbox will restart itself. If {string} is
# specified, then a different window manager will be started.
#
# [style] (filename)
# This will insert an item to reconfigure blackbox with the new style. This
# change is saved when blackbox exits or restarts.
#
# [include] (filename)
# This will read more menu items from the file "filename". The file cannot
# contain a [begin] or [end], except for the [end] needed for submenus.
#
# example:
[begin] (Blackbox 0.51.3.1)
[exec] (Eterm) {Eterm --shade 25%}
[exec] (Konsole) {konsole}
[exec] (rxvt) {rxvt}
[submenu] (CDROM)
[exec] (Mount) {CDmnt}
[exec] (Unmount) {CDumnt}
[end]
[exec] (top) {Eterm --trans -x -g 80x22+0+0 --scrollbar=0 -f navy -b white -e top}
[exec] (xmms) {xmms}
[exec] (XEmacs) {xemacs}
[exec] (Acroread) {/usr/local/Acrobat3/bin/acroread}
[submenu] (Graphics)
[exec] (XV) {xv}
[exec] (The GIMP) {gimp}
[exec] (Image Magick) {display}
[end]
[submenu] (Netscape)
[exec] (Netscape Navigator) {netscape}
[submenu] (More...)
[exec] (Netscape Mail) {netscape -mail}
[exec] (Netscape News) {netscape -news}
[exec] (Netscape Composer) {netscape -edit}
[end]
[end]
[submenu] (X Utilities)
[exec] (Xfontsel) {xfontsel}
[exec] (Xkill) {xkill}
[exec] (Xman) {xman}
[exec] (Xcalc) {xcalc}
[exec] (Xload) {xload}
[end]
[submenu] (K Utilities)
[exec] (kcalc) {kcalc}
[exec] (kfind) {kfind}
[exec] (kfm) {kfm}
[exec] (kpackage) {kpackage}
[end]
[submenu] (Styles) {Choose a style...}
[include] (/usr/local/share/Blackbox/styles/stylesmenu)
[end]
[reconfig] (Reconfigure)
[restart] (Restart)
[submenu] (Others) {Other Window Managers}
[restart] (Start FVWM) {fvwm}
[restart] (Start WindowMaker) {wmaker}
[restart] (Start Afterstep) {afterstep}
[restart] (Start TWM) {twm}
[restart] (Start KWM) {kwm}
[restart] (Start MWM) {mwm}
[end]
[exit] (Exit)
[end]
# End of example menu.