Friday, July 30, 2010

Gnome + Xmonad

From http://markhansen.co.nz/xmonad-ubuntu-lucid
Here’s how to run XMonad as a drop-in replacement for gnome’s default window manager (Metacity):

Install XMonad. Open a terminal and enter:
sudo apt-get install xmonad
Configure XMonad to interact happily with gnome. Make a file ~/.xmonad/xmonad.hs, and put in it:
import XMonad
import XMonad.Config.Gnome
main = xmonad gnomeConfig
Compile this config file by typing xmonad --recompile at the terminal.

Tell gnome to use xmonad instead of metacity. At the terminal, enter:
gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string
Log out and log back in and you're done.

NOTE: To revert back to Metacity from XMonad, at the terminal, enter:
gconftool-2 -s /desktop/gnome/session/required_components/windowmanager gnome-wm --type string