Add rules for Dia and Gvim
Remap capslock to escape.
Close window by middle-clicking tag.
Tweak mouse bindings.