Modify the position of the buttons of the windows and elements of the Fluxbox toolbar

One of the reasons I like Fluxbox so much is the ease to configure it. In this howto I am going to teach how to modify the position of the buttons of the windows and the elements of the Fluxbox taskbar, editing the file init what is in the folder .fluxbox from your directory / Home.

First of all it is advisable to make a backup just in case we screw it up as it is the main config file and may stop working. All the options explained here are those that cannot be changed from the configuration menu of flux box.

The first thing is to open the file with our favorite text editor (in my case leafpad).

Windows

These lines tell flux box position and window button order:

session.screen0.titlebar.left: Stick
session.screen0.titlebar.right: Minimize Maximize Close

If you like it Mac o Ubuntu just modify it like this:

session.screen0.titlebar.left: Minimize Maximize Close
session.screen0.titlebar.right: Stick

Taskbar:

As with the window buttons we can change the order of the taskbar items (or remove some, like the clock in my case):

session.screen0.toolbar.tools: prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock

In Spanish it would be: Button to go to the previous workspace, name of the workspace, button to go to the next workspace, icon bar (where windows are minimized), system tray and clock.

Also there is a trick that does not appear in the official documentation. If in that same line if you write root menu a button appears like the following workspace that when pressed, the Fluxbox menu appears, ideal if we have windows occupying all the space.

If you want to know more about this file, I recommend that you go through the following entry in the Fluxbox official wiki: Editing the init file