Replacing Fluxbox Main Menu with PieDock
Author: Pablo Delgado <pablodelgado@gmx.com>
Copyright (C) Pablo Delgado

Fluxbox is a great lightweight window manager. The great thing about fluxbox is
that it does not consume alot of memory and its highly customizable. The only
thing it lacks is a bit of WOW. Using PieDock you can now make your default
launch menu much more animated. This totrial will teach you how to set PieDock
as your default application launch menu in fluxbox but also how to remap the
fluxbox menu so you can still access it with ease when ever needed.

Note: This tutorial assumes that you have installed PieDock in your $PATH.

The first thing you need to do is locate the "keys" file located in the
$(HOME)/.fluxbox directory. At the top of this configuration file there
are 3 lines like the ones show below:

-------------------- EXAMPLE ------------------------

    # click on the desktop to get menus
    OnDesktop Mouse1 :HideMenus
    OnDesktop Mouse2 :WorkspaceMenu
    OnDesktop Mouse3 :RootMenu

-------------------- EXAMPLE ------------------------

These are the default mouse action for left, middle and right click on the
fluxbox desktop. The third line defines the action for the right mouse button.
By default it shows you fluxbox's main menu. This is the one we want to modify.

First copy the line and past it right below so you have a copy of the origninal
line. Now you have 4 lines total and the last two are the same. Ok now lets go
back to the third line. At the end of the line you have the following string
:RootMenu. Change this to :Exec PieDock. This tells fluxbox to execute PieDock
anytime you right click the mouse on the desktop. 

Now, we are going to go back to the 4th line. Add 'Mod1' right before the
Mouse3 string.

After you are done it should now look like the example below: 

-------------------- EXAMPLE ------------------------

    # click on the desktop to get menus
    OnDesktop Mouse1 :HideMenus
    OnDesktop Mouse2 :WorkspaceMenu
    OnDesktop Mouse3 :Exec PieDock
    OnDesktop Mod1 Mouse3 :RootMenu

-------------------- EXAMPLE ------------------------

Now its time to test. The first time you right click on your desktop nothing
may happen. Wait a second or two and then try it again. Now anytime you 
right click PieDock will launch. 

If you need to access the default menu simply hold down the ALT key then right
click on the desktop.


