<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Woops, accidentally sent before finishing my last line. "Probably
not the most elegant solution, but it compiles and works great!"<br>
<br>
Thanks! A lot of this XMonad configuration is still a mystery to me,
and any extra tips to understanding it would be appreciated!<br>
<br>
Bryan<br>
<br>
<div class="moz-cite-prefix">On 08/02/2012 12:23 PM, Brandon Allbery
wrote:<br>
</div>
<blockquote
cite="mid:CAKFCL4UKWq7UkyGLegzFGGWwv5oQvZJnwob7gwCcn7M8Dw63rg@mail.gmail.com"
type="cite">
<div dir="ltr">On Thu, Aug 2, 2012 at 2:42 PM, Bryan Huh <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bhh1988@gmail.com" target="_blank">bhh1988@gmail.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> I see. That solved
that problem, but now I get an error saying:<br>
</div>
</blockquote>
<div><br>
</div>
<div>*sigh* I tripped over the same problem I was trying to
avoid in a different form... this will be harder to do than
I'd hoped. (Forgot that it's already in a pure context;
have to rearrange the whole thing to compensate)</div>
<div><br>
</div>
<div>
<div>The viewHidden function now looks like</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">viewHidden
:: WorkspaceId -> X ()<br>
viewHidden w = do<br>
ws <- gets windowset<br>
when (w `notElem` (map (W.tag . W.workspace) $ W.current
ws : W.visible ws))<br>
(windows $ W.view w)</blockquote>
<div><br>
</div>
<div>and the list comprehension defining the workspace
switching keys has now been refactored into:</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
[((m .|. modm,k),f i)<br>
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 ..
xK_9]<br>
, (f, m) <- [(viewHidden,0), (windows .
W.shift,shiftMask)]<br>
]</blockquote>
</div>
<div><br>
</div>
</div>
-- <br>
brandon s allbery <a
moz-do-not-send="true" href="mailto:allbery.b@gmail.com"
target="_blank">allbery.b@gmail.com</a><br>
wandering unix systems administrator (available) (412)
475-9364 vm/sms<br>
<br>
</div>
</blockquote>
<br>
</body>
</html>