In the last six months I must have set up my default Ubuntu 16.04 + Xmonad desktop environment on like four or more machines. The goal looks like this (I like to have the top bar for status and widgets):
Here is a small guide for future reference:
Install the Xmonad package:
sudo apt install xmonad
At this point you can already select an Xmonad session at the login screen. But this is not recommended.
So additionally you should install the
sudo add-apt-repository ppa:gekkio/xmonad sudo apt-get update sudo apt-get install gnome-session-xmonad
Configure Xmonad. The Xmonad configuration is written in Haskell. If you are uncertain or need something working to start from, you are free to take my configuration. Place it here:
Relog and choose the GNOME + XMonad session at the login screen.
If you dislike the bottom panel (like I do, see above screenshot), you can disable it with:
dconf write /org/gnome/gnome-panel/layout/toplevel-id-list "['top-panel']"
To redisplay it, execute:
dconf write /org/gnome/gnome-panel/layout/toplevel-id-list "['top-panel','bottom-panel']"