Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

How to add sub-menus to FluxBox

Date: 2008-02-02 00:00:00 -0400

I have started using FluxBox, which is an alternative to KDE or Gnome or XFCE, FluxBox is smaller than all the other three mentioned by me, and it is also faster, FluxBox is the Default windows manager for DSL (Damn small Linux).

Well after this really small introduction, let's go to the point.

To access the menu just right-click on the Desktop and you will see the menu of FluxBox, but if you want to add another application, like VMware you will have to edit the file $HOME/.fluxbox/menu with your favorite text editor, by default it should look like this:

[begin] (fluxbox)
[include] (/etc/X11/fluxbox/fluxbox-menu)
[end]

Now if you want to add another menu

[begin] (fluxbox)
[include] (/etc/X11/fluxbox/fluxbox-menu)

    [submenu] (Virtual)
        [exec] (Vmware) {vmware}
    [end]
[end]

If you want to add a sub-menu inside the first menu:

[begin] (fluxbox)
[include] (/etc/X11/fluxbox/fluxbox-menu)
    [submenu] (Virtual)
        [exec] (Vmware) {vmware}
            [submenu] (other-menu)
                    [exec] (Name) {command}
            [end]
    [end]
[end]

As you can see, it is really easy, enjoy Fluxbox

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.