It's been over one week since the release of wmii-3, the
dynamic window manager thats boasts
Wimp (Windows, Icons, Menus and Pointing device) is dead!
It took me one day to grow accustomed to the new tag-based workspaces, and a
couple to stabilize my setup.
wmii ships with a few shell scripts that control the behavior of the WM: key
bindings, menu bar, default options... I was more than willing to rewrite them
in Ruby in order to get rid of that echo, sed, awk, etc. mess. In the process I
abstracted things a little bit, making it easier to handle the events reported
by the WM.
The good thing about using Ruby is that adding extra logic isn't a PITA, as it
is in shell script, at least for me. The following snippet allows me to retag
the current client partially, replacing only the numerical tag and leaving the
other ones untouched: