Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

How can I use Unity 2d with another window manager besides Metacity? (like openbox forexample)

share|improve this question
By the way, has anyone filed bugs on metacity and compiz issues, regarding crashing and X unpredictably freezing? I know there are various flickering issues reported, one of at least is cronic. – user80546 Aug 1 '12 at 0:10

3 Answers 3

up vote 5 down vote accepted

You can add compiz --replace to your startup applications. Restart your session (Log out, and then back in again) and you'll now be using Compiz.

A similar action will be used for openbox. I think it's openbox --replace

share|improve this answer

To make changes permamnent, You'll have to edit unity session file. Here's short guide for Unity2d and openbox:

Install openbox:

  1. sudo apt-get install openbox
  2. Optionally install additional packages (in my case these were installed as dependencies): sudo apt-get install obconf openbox-themes
  3. Edit /usr/share/gnome-session/sessions/2d-ubuntu.session file and replace:

    DefaultProvider-windowmanager=metacity with
  4. Logout, login (with Unity 2d session).
  5. Run obconf, choose some nice theme (my was found on and changed a little) and configure buttons position.
share|improve this answer

The file is




at least with Precise.

Also, if you install Openbox and attempt to re-log in, there'll be an "Openbox/Gnome" desktop option in the log-in menu. I've chosen that and there is no weirdness (missing universal App menu and missing dock) as when I enter Openbox --replace from terminal running an Unity instance.

Logging in as suggested, seems to be running Openbox as a wm because my crashing and flickering issues (some?, all?) are gone, as when I run straight Openbox. Besides, what else would Openbox be doing but taking over windows manager responsibilities?

share|improve this answer
Are you correcting another answer? – Mateo Sep 30 '12 at 2:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.