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 xmonadConfigure XMonad to interact happily with gnome. Make a file ~/.xmonad/xmonad.hs, and put in it:
import XMonadCompile this config file by typing xmonad --recompile at the terminal.
import XMonad.Config.Gnome
main = xmonad gnomeConfig
Tell gnome to use xmonad instead of metacity. At the terminal, enter:
gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type stringLog 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