Switching to dwm

I just switched from wmii to dwm a light and hackable window manager.

dwm is really nice and simple, but I did not like that it reads its status bar text from stdin. Mainly because it took me a while to figure out how to make it work properly:

while true; do echo `date`; done | dwm

And displaying the date is simple enough to be done directly inside the dwm executable. I created a patch to make dwm displays the local date without reading the standard input.

It also saves a few lines of code ;)

Download the patch here. This version works with dwm 5.1, but doesn’t work with version 5.5+.

You can find an updated version of the patch here.