Use XMonad.Config.Gnome.gnomeConfig as your base config. Log in with gnome as normal and do:
pkill metacity
pkill compiz
sleep 3
xmonad &
Not the most elegant solution, but it works.Use XMonad.Config.Gnome.gnomeConfig as your base config. Log in with gnome as normal and do:
pkill metacity
pkill compiz
sleep 3
xmonad &
Not the most elegant solution, but it works.At this point, it's probably easier to either create your own session script to start up the parts of Gnome that you want along with XMonad (e.g. gnome-screensaver, gnome-power-manager, etc) or to see about using XMonad as the window manager for XFCE.
Also, you used to be able to set the $WINDOW_MANAGER environment variable in ~/.gnomerc, to turn on XMonad as the window manager.
On Ubuntu at least I've had success with http://markhansen.co.nz/xmonad-ubuntu-oneiric/
(Having the launcher floating around is annoying though, and removing it from the gnome-session file had some unpleasant side-effect that I don't remember.)
This is why people want to use XMonad as Gnome's window manager.