logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fluxbox-menu - fluxbox(1) menu syntax

Author

JimRamsay <i.am@jimramsay.com> Author. fluxbox-menu.txt 08 February 2015 FLUXBOX-MENU(5)

Authors

• Jim Ramsay <i.am at jimramsay com> (>fluxbox-1.0.0) • Curt Micol <asenchi at asenchi com> (>fluxbox-0.9.11) • Tobias Klausmann <klausman at users sourceforge net> (⟨fluxbox-0.9.11) • Grubert <grubert at users sourceforge net> (fluxbox) • Matthew Hawkins <matt at mh dropbear id au> (blackbox) • Wilbert Berendsen <wbsoft at xs4all nl> (blackbox)

Description

There are two types of menus in fluxbox which can be configured. The first is the root menu, which normally appears when you right-click on the desktop. The first is the ROOTMENU (Or right-click menu), is usually bound to a right-click on the desktop, though this binding can be changed in the ‘keys’ file (fluxbox-keys(5)). This same syntax is used for the CustomMenu command, also mentioned in fluxbox-keys(5). Fluxbox installs a default root menu file in /usr/local/share/fluxbox/menu. You can also use fluxbox -i to confirm this location. Of course this system-wide menu can be customized for all users at once, but it is also possible to create an individual menu file for each user. By convention, users create a menu file in ~/.fluxbox/menu. Once you’ve created your own menu file, you’ll want to make sure that you properly declare this location in your ‘init’ file so that fluxbox knows where to look. See RESOURCES, below for details. The second type is the WINDOWMENU, which defines the contents of the menu which appears when you right-click on a window’s titlebar or iconbar. This opens a menu file as defined by ~/.fluxbox/windowmenu. If this file does not exist, fluxbox will copy in the default from /usr/local/share/fluxbox/windowmenu. You do not need to “reload” fluxbox after editing the apps file, the changes should be taken into account the next time you open the menu.

Environment

The comand... field of the [exec] tag can take advantage of other environment variables if they are set before fluxbox is started.

Examples

RootMenu. # fluxbox menu file [begin] (fluxbox) [exec] (rxvt) {rxvt -ls} </usr/X11R6/share/icons/terminal.xpm> [exec] (netscape) {netscape -install} [exec] (The GIMP) {gimp} [exec] (XV) {xv} [exec] (Vim) {rxvt -geometry 132x60 -name VIM -e screen vim} [exec] (Mutt) {rxvt -name mutt -e mutt} [submenu] (mozilla) [exec] (browser) {mozilla -browser} [exec] (news) {mozilla -news} [exec] (mail) {mozilla -mail} [exec] (edit) {mozilla -edit} [exec] (compose) {mozilla -compose} [end] [submenu] (Window Manager) [exec] (Edit Menus) {nedit ~/.fluxbox/menu} [submenu] (Style) {Which Style?} [stylesdir] (~/.fluxbox/styles) [stylesmenu] (fluxbox Styles) {/usr/local/share/fluxbox/styles} [end] [config] (Config Options) [reconfig] (Reconfigure) [restart] (Restart) [end] [exit] (Log Out) [end] DefaultWindowMenu. [begin] [shade] [stick] [maximize] [iconify] [raise] [lower] [settitledialog] [sendto] [layer] [alpha] [extramenus] [separator] [close] [end]

Files

~/.fluxbox/menu This is the default location for the user’s root menu. /usr/local/share/fluxbox/menu This is the system-wide root menu file. It will be used if the user’s root menu is missing or unparseable. ~/.fluxbox/windowmenu This is the user’s window menu definition file /usr/local/share/fluxbox/menu This is the default window menu. If the user does not have this file, it will be copied to ~/.fluxbox/windowmenu on fluxbox startup.

Name

fluxbox-menu - fluxbox(1) menu syntax

Resources

session.menuFile:location This may be set to override the location of the user’s root menu.

See Also

fluxbox(1) fluxbox-keys(5) fluxbox-apps(5) xkill(1) iconv(1)

Synopsis

/usr/local/share/fluxbox/menu ~/.fluxbox/menu~/.fluxbox/windowmenu

Syntax

Variable parameters are shown in emphasis: argument All other characters shown are required verbatim. Whitespace is only required to delimit words, but it is fine to add more whitespace.

See Also