Wednesday, October 5, 2011

Running Unity 2D with Compiz, Ubuntu Natty / Oneiric

By default, Metacity is run in the Unity 2D session, but if you want to have some eye candy, you can change its session settings to run Compiz instead. So, if the 'real' Unity is a bit heavy for your system; by running Compiz in Unity 2D, you can have a much snappier desktop and eye candy at the same time.

Notice, however, that your changes would affect all users, as you change settings system-wide, and that an upgrade of the package "gnome-session" would revert them.


Natty Narwhal

1. Open Unity 2D's session settings:

gksudo gedit /usr/share/gnome-session/sessions/2d-ubuntu.session

2. Change "metacity":

[GNOME Session]
Name=Unity 2D
Required=windowmanager;panel;filemanager;
Required-windowmanager=metacity
Required-panel=unity-2d-panel
Required-filemanager=nautilus
DefaultApps=gnome-settings-daemon;unity-2d-launcher;
FallbackSession=classic-gnome

3. To "compiz":

[GNOME Session]
Name=Unity 2D
Required=windowmanager;panel;filemanager;
Required-windowmanager=compiz
Required-panel=unity-2d-panel
Required-filemanager=nautilus
DefaultApps=gnome-settings-daemon;unity-2d-launcher;
FallbackSession=classic-gnome

4. Save the file, and relogin.

Oneiric Ocelot

1. Open Unity 2D's session settings:

gksudo gedit /usr/share/gnome-session/sessions/ubuntu-2d.session

2. Change "metacity":

[GNOME Session]
Name=Ubuntu 2D
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;launcher;
DefaultProvider-windowmanager=metacity
DefaultProvider-panel=unity-2d-panel
DefaultProvider-launcher=unity-2d-launcher

DesktopName=Unity

3. To "compiz":

[GNOME Session]
Name=Ubuntu 2D
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;launcher;
DefaultProvider-windowmanager=compiz
DefaultProvider-panel=unity-2d-panel
DefaultProvider-launcher=unity-2d-launcher

DesktopName=Unity

4. Save the file, and relogin.

Related Posts:

Compiz , Session , Unity , Unity 2D