Wait a minute!

May 10th, 2008   Filed Under Tools  

You can use a toolbar in Xmonad, pretty much like the tool found in dwm…

I was busy configuring other things and I have been using Xmonad without a toolbar, no clock, no time, just me and the computer. I feel free! I realized that my eyes try to see the dwm toolbar, looking for windows open in the workspaces. That is a waste of energy, as that information should be in my mind.

I also changed dmenu so that it now appears in the middle of the string, you can do that with:

, ((modMask,               xK_p     ),      spawn “exe=`dmenu_path | dmenu -p ‘>’ -i -y 450 -fn ‘-*-fixed-medium-r-normal-*-20-*-*-*-*-*-*-*’ ` && eval \”exec $exe\”")

the number following -y should be the height of your screen divided by 2.

I’ve been thinking:

If I have X layout with lots of windows, I want to access each window directly, by number (just like ion).

Tags in Dwm and Xmonad are a way of achieving this, by trying to keep the least amount of windows, you can jump directly to them by workspace. In laptops or small displays this is the only way to go.

The conclusion is that I don’t need all the fancy layouts of Xmonad because anyway I won’t use them. In emacs is the same, I rarely have more than 2 windows.

Configuring xmonad

May 9th, 2008   Filed Under Tools  

Ok so I spent a while configuring Xmonad. As someone else said, it is like a framework for building your own keyboard based window manager. I really like how you can apply transformations to layouts, for example:

myLayout = noBorders Grid

Here I am applying the noBorders transform that will remove window borders on the Grid layout.

It is powerful and exciting, but configuring packages for haskell is hard and contrary to what is written in the website, building Xmonad from source requires downloading lots of dependencies. They are working on an automatic installer a la CPAN (for perl) but it is not ready yet. I tried to install it, and it asked lots of dependencies! :(

The cool thing is that it provides layouts per workspace and LOTS of customizations. But I can’t use it easily in ubuntu < 8.04 …

つまり, en resumen,

General, cool but very hard to port! I will check awesome and then decide if I will stay with it or DWM…

As soon as the Haskell guys polish their CPAN, Xmonad will be very easy to install.