
4 Aug
2007
4 Aug
'07
5:21 a.m.
Michael Vanier
Second, I was wondering if there is a way to display the current workspace number and/or window title in a dzen status bar.
You can use the DynamicLog contrib module and then set a loogHook in Config.hs. This prints the string you are interested in to xmonad's stdout which you can pipe to a dzen instance.
Third, is it possible to swap workspaces i.e. change workspace 2 to 1 and vice-versa?
I wrote such an extension for my own use, but I didn't get around to cleaning it up yet. I use it like this in my config: ... , ((modMask, xK_a), submap . M.fromList $ [((0, k), swap i) | (i,k) <- zip [0 .. fromIntegral workspaces - 1] [xK_1 ..]]) ... Here's the the patch anyways ... Benedikt