[xmonad] darcs patch: More flexible userCode function