Xmonad

xmonad is a fast and lightweight tiling window manager for X11 written, configured and extended in the purely-functional programming language Haskell.

USE flags
There are two ways to install XMonad. The Gentoo recommended method is to use Portage so that the package will be integrated into the system's package database.

Emerge
Merge the package:

Cabal (unsupported)
It is possible to install using cabal, although it is not the Gentoo recommended method for installation system-wide packages. When choosing this route proceed with caution (Portage will not track xmonad)!

Starting
Start xmonad using a display manager or the command.

If want to use startx and want ConsoleKit support, setup ConsoleKit and create the following file:

~/.xmonad/xmonad.hs
XMonad itself can be configured through which is written in Haskell.

Minimal configuration file with default configuration:

Once you changed your config file you should compile it and restart XMonad.

In most cases to write a config file you need additional features provided by the xmonad-contrib library. You can install it from

OR using cabal:

Adding status bars
Unlike many other window managers, XMonad does not have any built-in status bars. Instead of this it can pipe required information to an external program. Usually, xmobar, or dzen is a good choice for a status bar.

xmobar
Install :

dzen
Install :

External resources

 * XMonad on HaskellWiki
 * XMonad on ArchWiki
 * XMonad on ArchWiki