Using Xmonad in Ubuntu 06-29-2013, 07:07 PM
#1
![[Image: xmonad.png]](http://www.iconattitude.com/icons/open_icon_library/apps/png/256/xmonad.png)
Xmonad is a tiling window manager written and configured in Haskell.
I decided to use Xmonad without Gnome or any other desktop manager.
As said >>here<<: "The advantages of using xmonad in Ubuntu without a full DE are speed and reduced memory use."
It's not only the overall performance that will be better, but also your working speed once you got used to navigating the tiling windows. I tried xmonad the first time on Arch and I never want back to non-tiling windows since then.
You will need your mouse much less than before and you will get the most out of your screen as it isn't filled with unnecessary stuff, unless you want to.
You can use the following description to set up your own Xmonad or just to see what is possible.
Look at the end of my post for links to some other guides, i.e. using Xmonad in Gnome.
This is my current setup (screenshot):
Spoiler:
For this you need to install:
Code:
xmonad
trayer
xmobar
gtk-theme-switch
xcompmgr
hsetroot
rxvt-unicode
suckless-tools (contains dmenu)
The configuration file for Xmonad is ~/.xmonad/xmonad.hs
Create this file. It looks like this for me:
Spoiler:
Make sure that the file compiles by typing on the command line:
Code:
ghc --make xmonad.hs
or
Code:
xmonad --recompile
Set up a custom xsession by creating a file in /usr/share/xsessions/custom.desktop that looks i.e. like this (Name can be whatever you like):
Code:
[Desktop Entry]
Name=MyCustomXsession
Exec=/etc/X11/Xsession
Edit or create your .xinitrc with the following contents, edit the path to the wallpaper you wish to have:
Spoiler:
Create a symlink for .xsession to .xinitrc:
Code:
ln -s ~/.xinitrc ~/.xsession
xmobar is a minimalistic text based status bar that works well with xmonad and is also written in Haskell.
Set up the config files for the bars on top and bottom.
top (.xmobarrctop):
Spoiler:
bottom (.xmobarrcbottom):
Spoiler:
Now log out of your current session and log in into your custom xsession (switch the session by clicking on the icon in the default Ubuntu login screen).
Last but not least use the gtk-theme-switch2 command to set up a theme you like.
The tool lxappearance may work too, but it didn't for me.
For more information see the links below.
xmobar:
http://projects.haskell.org/xmobar/
xmonad:
http://xmonad.org/
xmonad in ubuntu:
http://www.haskell.org/haskellwiki/Xmona..._in_Ubuntu
xmonad and gnome:
http://www.haskell.org/haskellwiki/Xmona...d_in_Gnome
custom xsession:
https://wiki.ubuntu.com/CustomXSession
urxvt configuration:
https://wiki.archlinux.org/index.php/Rxvt-unicode
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
Expressed feelings are just an attempt to simulate humans.
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)