Openbox: A fun and lightweight window manager

I am always on the lookout for a new way of doing things when it comes to personal computing, and one of the best ways to do so is to experiment with different window managers for Linux.

Since I have my laptop set up as an Ubuntu test platform, and since APT makes it easy to download and install applications and not find myself in dependency hell, my laptop seemed to be a great way to play around with a window manager about which I’ve been reading for some time: Openbox.

Those of you who are familiar with LXDE will have some experience, albeit limited, with Openbox, as LXDE is based on it (with a bunch of other cohesive applications and a consistent look and feel integrated to complete the transition from “window manager” to “desktop environment”), but Openbox will seem much more familiar to users of Blackbox and Fluxbox, predominately in the sense that Openbox is built very light and minimal, with a desktop bare of icons, and a user-defined right-click menu that is used for launching applications. Like Blackbox and Fluxbox, Openbox is also dockapp friendly, and as a window manager it runs very fast on limited hardware.

I’m a big fan of Fluxbox, so I thought it worthwhile to give Openbox a try, if nothing else to give me material for a Linux Critic writeup, and instead I found that I just liked using Openbox, so this turned out to be more than just a review.

Download and installation

If you’re running something like Slackware, Openbox source code can be downloaded from the Openbox website, and Slackbuilds has a workable alternative.

Of course, on Ubuntu, or anything that uses APT repositories, the simple way to get Openbox is with this simple command, entered into a terminal:

sudo apt-get install openbox

You will be wanting a graphical menu editor as well, so while you're at the command line, once Openbox is finished installing via apt-get, type this as well:

sudo apt-get install obmenu

Trust me, you'll thank me for that second one.

Once you have everything installed, in Slackware you will be wanting to run xwmconfig to pick your default window manager (if you're a runlevel 3 kind of user). In Ubuntu, or if you're booting up with a graphical login manager in Slackware, simply select Openbox from the session menu before logging in.

Okay... it's empty. Now what? Configuration!

Yeah, that's what I thought too. Openbox out-of-the-box is VERY spartan. Your default first look at this window manager will likely make you think "uh... when will it finish starting up?".

The answer to that is simply "it's already done!". Openbox by default is a bare, grey desktop and nothing else. No toolbar, no icons, nothing. So we'll tackle configuration one element at a time. First, let's talk about where we find all this stuff.

Openbox keeps all of its "stuff" in /~/.config/openbox. By default, you're only going to find only one file there, and that's the menu.xml. We'll get to configuring that in a minute, but first, let's get one of the other files we'll need. Go back to a terminal and type the following into it and hit enter:

cp /etc/xdg/openbox/rc.xml ~/.config/openbox

Everything Openbox does as far as behavior is defined in this single XML file. This will force Openbox to use your personal config for it, in your home directory. If you ever break something in it, you can always copy the system one again (in /etc/xdg/openbox/ ) and start fresh.

Next step, the menu!

The Openbox Menu

The first thing I did in Openbox was explore the Openbox menu. Remember when I had you install something called "obmenu" before? Here's where it comes into play.

If you haven't noticed already, Openbox's configuration file and its menu file are both XML files. XML has its advantages and disadvantages, and one of those disadvantages is that it does make editing Openbox's menu a bit more complicated if it's done by hand. Blackbox and Fluxbox users out there will see this as one of the bigger differences between Openbox and either of those other window managers... Blackbox and Fluxbox flat text files are a lot easier on the eyes when working with them than Openbox's XML files tend to be, at least at first.

But Obmenu provides a nice, user friendly graphical front end to Openbox's menu. I actually had my Openbox menu pretty much the way I like it before I found myself wondering "is there a graphical editor out there for this?", and found that yes, there was!

And I wished I'd thought that before I spent a good twenty minutes editing the XML by hand. Don't get me wrong; this isn't too hard to do, just tedious.

If you install Openbox from APT repositories, you'll find that it's packaged with a pre-generated "Debian" submenu; this is normal. It's actually kind of handy (I left it in mine) because it does provide some apps that you might not think of adding to your custom menu at first. Again, those of you who use Blackbox and Fluxbox already have a good idea of what you'll want on your Openbox menu. I basically used my Fluxbox menu as a template and made my Openbox menu more or less identical to it.

Next page: What to run on Openbox startup

About these ads

9 thoughts on “Openbox: A fun and lightweight window manager

  1. Pingback: s5h.net » Blog Archive » K Desktop Environment Has Summit, GNOME Has New Journal, Other Desktop Options Debated
  2. Pingback: Links 09/09/2009 (9/9/9): Debian switches to Upstart, Palm introduces Pré junior | Boycott Novell
  3. Pingback: Dan Serban (allsystemsarego) 's status on Thursday, 10-Sep-09 09:16:06 UTC - Identi.ca
  4. Try tint2 as a panel with openbox. It doesn’t have a tray so if you want one, you might need docky which sits in your dock area.

  5. Pingback: GoblinX Project » GoblinX Newsletter, Issue 217 (09/13/2009)
  6. Pingback: How to make Peppermint OS even faster with Openbox « The Linux Critic
  7. Pingback: Openbox window manager | maurizio siagri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s