Get to know Linux: Fluxbox - gHacks Tech News

Get to know Linux: Fluxbox

If you've been around Linux long enough, then you most likely will have heard about Fluxbox. Fluxbox is a desktop that was based on Blackbox 0.61.1, which makes it extremely light weight, fast, and reliable. Fluxbox is also very minimalistic which makes it ideal for certain situations. Although Fluxbox might seem somewhat lacking in the features of a standard, modern desktop, don't sell it short. Fluxbox is easy to use and doesn't suffer from the bloat of other desktops.

But just what does Fluxbox offer if it is so minimal? Believe it or not it offers everything you need on a desktop to get your job done. Let's take a look at the latest version of this old-school Linux desktop.

Features

Figure 1
Figure 1
  • Mouse menu: This is the only menu you will find on the desktop.
  • Slit: This is a dock for any application that is "dockable".
  • Toolbar: This bar (by default at the bottom of the screen) shows all of the windows of your desktop and contains the system tray, current workspace name, and more.
  • Workspaces: Switch between different workspaces to keep your desktop organized.
  • Tabs: Organize windows together into one or multiple tabbed windows to keep clutter to a minimum.
  • Keyboard Shortcuts: Create your own keyboard shortcuts via simple flat text configuration.
  • System Tray: This tool is used to house tiny applications that serve specific purposes (such as the Network Manager applet.)

Figure 1 shows the Fluxbox desktop. As you can see it is, in fact, very minimal yet doesn't suffer from a loss of useability.

Configuring the menu

By default you will notice a single right click on the desktop will bring up a rather barren menu. Figure 1 shows a menu with a couple of additions: Firefox, Thunderbird, Songbird, and GIMP.  Adding to this menu is simple. One of the entries in the menu is xterm, which you will need to open in order to edit the menu text file.

Once xterm is opened issue the command:

nano ~/.fluxbox/menu

to open up the menu configuration file. Each menu entry consists of a minimum of:

[exec] (NAME) {COMMAND}

Where NAME is the name of the application and COMMAND is the command to start up the application. So an entry for Firefox would look like:

[exec] (Firefox) {firefox}

You can also create submenus by starting each submenu with:

[submenu] (SUBMENU NAME)

Where SUBMENU NAME is the name of the submenu you want to use. So a Networking submenu could look like:

[submenu] (NETWORKING)
[exec] (Firefox) {firefox}
[exec] (Thunderbird) {thunderbird}

Once you have finished your menu, save it and you will automatically see the changes (no need to restart Fluxbox.)

Tabs

Figure 2
Figure 2

This is one of the more unique features to Fluxbox. Tabs are similar to browser tabs in Firefox. You can join various windows together into one tabbed window in order to keep things organized. As you can see, in Figure 2, Firefox and Thunderbird have been joined together in one window. To switch back and forth between each just click the respective tab for the application you want to work with.

To join two windows together you simply middle mouse click (if you only have two buttons click them both at the same time) on the titlebar of one window and drag it to the titlebar of the window you want it to join. So to join Thunderbird with Firefox click on Thunderbird's title bar with the middle mouse button and drag it to the Firefox titlebar. You can remove an application from a joined window by middle mouse clicking on the titlebar and dragging it out of the window.

Setting a background

One thing you will notice is that Fluxbox is bereft of any tool to help you set the background image. For many this isn't an issue, but there are those who do prefer to have a personalized wallpaper on their desktop. In order to add a specific wallpaper you have to add a line to the ~/.fluxbox/startup file. This line will look like:

fbsetbg -f /PATH/TO/IMAGE/FILE

Where /PATH/TO/IMAGE/FILE is the explicit path to the background image you want to use.

In the case of the background, you will have to restart Fluxbox in order for the change to take effect.

Who is Fluxbox for?

I get this question a lot. Who would want to use such a minimal window manager? The first, and obvious, answer, is anyone with an older or less powerful machine. Employing Fluxbox on a machine with less power will not gobble up precious CPU or memory leaving more for applications.

I have deployed Fluxbox on kiosk and cafe machines that are used for specific purposes. Say you want to allow only the web browser to be used. For this you can alter the menu file to only include a web browser. That way the user can not run another other program (unless they how to get to a console window).

Fluxbox is also a good window manager for anyone who prefers a very minimalistic approach to computing. There is little to get in the way of your work. And since Fluxbox is so reliable, you won't be worrying about your desktop crashing.

Advertisement

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


Previous Post: «
Next Post: »

Comments

  1. Goh Mifune said on May 6, 2009 at 7:46 pm
    Reply

    Fluxbox is amazing, but Fluxbox + Ubuntu can be a hassle to deal with considering the screen resolution issues that everyone seems to have. I hope you go through all the semi-major WMs, it would be a good read.

  2. jack said on May 6, 2009 at 8:49 pm
    Reply

    Goh Mifune: I plan on doing just that. I will get through as many of the window managers as I can.

  3. RogueSpear said on May 7, 2009 at 12:55 am
    Reply

    I’ve never tried Fluxbox under the *buntus, but it’s wonderful under Arch. I was surprised when I recently read about Fluxbox having descended from Blackbox. I used to use Blackbox with Windows XP several years ago.

  4. Anders said on May 7, 2009 at 10:07 pm
    Reply

    Fluxbox is lovely. It was the first desktop I ever used under *nix and I have used it ever since. Tried Gnome and KDE a few times but in the end they just seem so bloated and uncustomizable. I’m running fluxbox (under Debian) on my high-end desktop, so it’s not about saving precious resources – the desktop/WM is just that lovely and stable.

  5. pga said on May 7, 2009 at 11:07 pm
    Reply

    I have two new, really powerful desktops & I have converted to fluxbox. KDE, XFCE, and GNOME gave me too much trouble: especially the keyboard escapes that worked that I had configured before an upgrade that no longer worked. And their configuration places were hidden. That is highly unable to happen with fluxbox with its text configuration files.

    So now I have the pain and suffering of typing
    sudo mount /dev/sdc1 /tmp/mntpt
    for my memory stick and camera card once in a while. Tough.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.