Xmonad is a minimalistic tiling window manager written and configured in Haskell. GNOME is a free and popular desktop environment for linux. GNOME with Xmonad is a wonderful combination of the two. This tutorial will go over how to install and get started using GNOME with Xmonad on Ubuntu 12.04.
Open up a terminal and install
Now create the file
~/.xmonad/xmonad.hs with the following contents:
Now log out. When you come to the login screen, you'll see a white circle.
Click on the white circle to see a list of your available desktop environments. Select "GNOME with Xmonad".
If all goes well, you should be greeted with an empty GNOME desktop.
Alt-Shift-Enter a couple of times and you should see a bunch of tiled
Now we've gotten GNOME with Xmonad up and running. To get started using your new desktop environment, check out the Xmonad tour and refer to this handy cheat sheet:
The commands I use most frequently are:
Now that you've gotten situated, you might be wondering where GNOME and Xmonad are storing all their configuration files. Let's explore some of these files. Then, we'll use what we've learned to add a custom Xmonad icon to the little white circle when we select "GNOME with Xmonad" at the login screen.
First up, head over to
/usr/share/xsessions. This directory contains the
files that specify which desktop environments we can select when we log in.
Let's take a look at
Let's take a peek at the
gnome-session-xmonad which in turn calls
gnome-session --session xmonad. So where's the
xmonad gnome session? It's
Let's look at
Interesting! The line
DefaultProvider-windowmanager=xmonad sets Xmonad as the
default window manager.
Well, what about the icons in the little white circle? Those guys are located in
eog unknown_badge.png and you'll see the familiar white circle. Head over
here to download some extra badges. Place
/usr/share/unity-greeter and you're good to go! Now, a nice Xmonad icon will
appear in the little white circle when you log in with "GNOME with Xmonad"!