I installed Ubuntu 10.10 Maverick Meerkat (in Parallels on my Mac) to try out XMonad, the tiling window manager. XMonad is a candidate if I move off the Mac. I am slowly increasing my keyboard use and relying less on the mouse and XMonad is a further step in that direction.
I have never installed or used Xmonad before and after too much time stuffing around with the usual linux problems, these are the steps I followed to get a simple, initial installation working on a fresh install of Ubuntu.
- Install Haskell, XMonad and dmenu.
$ sudo apt-get install haskell-platform xmonad dwm-tools
Originally, I installed Haskell and then tried to install XMonad via Cabal. Unfortunately the xmonad-contrib package failed to install due to dependency issues. - Set XMonad to be the window manager for Gnome.
$ gconftool-2 -s /desktop/gnome/session/required_components/windowmanager xmonad --type string
Found this at Xmonad/Using xmonad in Gnome. Don't log out or restart X now. If you do, you will find XMonad workspace 1 broken. It seems to consist of two Gnome panels tiled to fill the screen but hidden behind the desktop and any further windows you create are also hidden. The next step fixes this. - Create a simple Xmonad configuration file.
$ mkdir ~/.xmonad
$ touch ~/.xmonad/xmonad.hs
Set the contents ofxmonad.hs
toimport XMonad
import XMonad.Hooks.ManageDocks
main = xmonad $ defaultConfig {
manageHook = manageDocks <+> manageHook defaultConfig,
layoutHook = avoidStruts $ layoutHook defaultConfig
}
Apply the configuration.$ xmonad --recompile
This configuration was found at Xmonad/Config archive/John Goerzen's Configuration. - Logout and back in again. You should see a standard looking Ubuntu desktop with the menubar across the top and the normal panel along the bottom. See the tour to get started with the XMonad commands.