Do be more specific, I'm trying to read off the current: "ScreenId"<br><br><div class="gmail_quote">On Mon, Feb 16, 2009 at 4:45 PM, lowly coder <span dir="ltr"><<a href="mailto:lowlycoder@huoyanjinjing.com">lowlycoder@huoyanjinjing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">in my .xmonad/xmonad.hs , I have:<br><br> ++ <br>
[((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust (windows . f)) <br>
| (key, sc) <- zip [xK_a, xK_f] [0..] , (f, m) <- [(W.view, 0)]] <br> ++ <br> [((m .|. mod4Mask, key), screenWorkspace sc >>= flip whenJust (windows . f)) <br>
| (key, sc) <- zip [xK_s, xK_d] [0..] , (f, m) <- [(W.shift, 0)]] <br><br>now, instead of this, I'd perfer to have something where<br><br>xK_f alternates between workspace 0 & 1<br>I'd also like to make xK_d to send current window to other workspace<br>
<br>(this requires that I somehow know what my current workspace is -- is there a function to return this?)<br>
</blockquote></div><br>