text: Xmonad/Using xmonad in Gnome/0.5
  From HaskellWiki
  This is the old version of the gnome document, describing gnome support under xmonad 0.5
  1 Introduction
  Xmonad makes a great drop-in replacement for Gnome's default window manager (metacity) giving the user a slick tiling window manager. This guide will help you get your version of gnome up and running with xmonad 0.5.
  1.1 Assumptions
  For this tutorial we assume:
  - you're using xmonad 0.5 or newer.
  - you have installed the xmonad 0.5 contrib files.
  -.
  2 The configuration
  All configuration is done in the ~/.xmonad/xmonad.hs file.
  2.1 From scratch
  To make space for the gnome-panel/taskbar at the top, we setup the ManageDocks class:
  import XMonad.Hooks.ManageDocks main = xmonad defaultConfig { manageHook = manageDocks , layoutHook = avoidStruts (tall ||| mirror tall ||| Full) } where tall = Tall 1 (3/100) (1/2)
  For gnome to know about the windows and workspaces that xmonad creates, a class called EwmhDesktop exists. The configuration (from the EwmhDesktop page)looks like this:
  import XMonad import XMonad.Hooks.EwmhDesktops
  myLogHook :: X () myLogHook = do ewmhDesktopsLogHook return ()
  main = xmonad defaultConfig { logHook = myLogHook }
  Putting it all together, a simple xmonad.hs configuraton file that works with Gnome might be:
  import XMonad import XMonad.Hooks.ManageDocks import XMonad.Hooks.EwmhDesktops myLogHook :: X () myLogHook = do ewmhDesktopsLogHook return ()
  main = xmonad $ defaultConfig { borderWidth = 2 , manageHook = manageDocks , workspaces = map show [1 .. 5 :: Int] , logHook = myLogHook , layoutHook = avoidStruts (tall ||| Mirror tall ||| Full) } where tall = Tall 1 (3/100) (1/2):
  #!/bin/bash export WINDOW_MANAGER="/usr/bin/xmonad"
  2.2 From xmonad < 0.5.
  3 Issues
  - Shortcuts - Be weary of the keyboard shortcuts that might conflict. For example, by default xmonad uses alt as the mod key. However, the shortcut alt-space (cycle layout) conflicts with gnome's default window management shortcut.
  - Nautilus - The author has had problems when Nautilus is running. To disable it do the following:
  - Click System -> Preferences -> Sessions
  - Select the "Current Session" tab.
  - Find nautilus and select it. Set style: "Trash" and press remove.
  - On the "Session Options" tab. Press "Remember currently running applications"
  4 Old gnome tutorial from xmonad.org
  WARNING: This is probably out of date. It's only here so that the static page can be deleted from xmonad.org. Someone who is knowledgeable about such things should go through and delete/incorporate into the above as appropriate.
  4.1 Introduction.
  For this tutorial we assume:
  - you're using xmonad 0.4 or newer.
  -.
  4.2 Xmonad configuration:
  defaultGaps = [(24,0,0,0)]
  Once that's set recompile and reinstall xmonad. Press mod-q to make the settings take effect in a running xmonad instance.
  4.3 Preparing your GNOME session
  The two main approaches to changing GNOME's window manager are explained below. If you have a ~/.gnome2/session file then you should use option A, otherwise option B.
  - Launch GNOME as usual and back up ~/.gnome2/session in case you need to revert back to your current session configuration. Next, launch System --> Preferences --> Sessions (or at the command line, gnome-session-properties) and perform the following:
  -.
  - In the Current Session tab select the metacity item (or whichever window manager your current GNOME session is using) from the list and set its Style to Trash. Do the same for any items which have no icon in the Style column.
  - Click Apply.
  - In the Session Options tab click Save the current session (or Remember currently running applications in GNOME 2.20) and then Close. This will write your modified session to ~/.gnome2/session.
  -:
  export WINDOW_MANAGER="/usr/bin/xmonad"
  You can also define it system-wide. On Gentoo for example, put the following in /etc/env.d/99local then run env-update:
  WINDOW_MANAGER="/usr/bin/xmonad"
  Now that your session is ready, log out of GNOME.
  4.4 Starting GNOME with xmonad:
  manageHook w "Top Expanded Edge Panel" "gnome-panel" _ = reveal w >> return (W.delete w)
  and then remove "gnome-panel", from the following definition:
  manageHook w _ n _ | n `elem` ignore = reveal w >> return (W.delete w) where ignore = ["gnome-panel", "desktop_window", "kicker", "kdesktop"].
  4.5 Problematic applications
  -.
  4.6 Tips
  - Launch gnome-terminal with mod-Shift-Enter If gnome-terminal is your preferred xterm you might want to change the key binding value for keys in Config.hs from:
  [ ((modMask .|. shiftMask, xK_Return), spawn "xterm") -- @@ Launch an xterm
  to the following:
  [ ((modMask .|. shiftMask, xK_Return), spawn "gnome-terminal") -- @@ Launch an xterm
  - Disable splash screen and Nautilus desktop Some find the Nautilus-managed desktop unhelpful when used in combination with xmonad. To disable it (while continuing to use Nautilus to manage files), you can use the command:
  gconftool --type boolean --set /apps/nautilus/preferences/show_desktop false
  The splash screen is another potential annoyance. It may also be disabled:
  gconftool --type boolean --set /apps/gnome-session/options/show_splash_screen false
  -:
  gconftool --type string --set /desktop/gnome/background/picture_filename "/path/to/your/image.png"
  NB: On some platforms the gconftool binary is named gconftool-2 instead.