<div>Thank you for your help,</div><div><br></div>Yeah, that&#39;s what I figured as well, but then I get this error when I recompile:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>xmonad.hs:391:25:</div>

</div><div><div>    Couldn&#39;t match expected type `a -&gt; a1&#39; against inferred type `X ()&#39;</div></div><div><div>    In the first argument of `(&gt;&gt;)&#39;, namely `takeTopFocus&#39;</div></div><div><div>    In the first argument of `($)&#39;, namely</div>

</div><div><div>        `takeTopFocus &gt;&gt; dynamicLogWithPP&#39;</div></div><div><div>    In the `logHook&#39; field of a record</div></div><div><div><br></div></div><div><div><br></div></div></blockquote><div><br><div class="gmail_quote">

On Mon, Nov 5, 2012 at 11:41 AM, Brandon Allbery <span dir="ltr">&lt;<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><br><br><div class="gmail_quote"><div class="im">On Mon, Nov 5, 2012 at 11:29 AM, Eyal Erez <span dir="ltr">&lt;<a href="mailto:oneself@gmail.com" target="_blank">oneself@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I apologize in advance for the newbie question, but how can I combine takeTopFocus with my existing logHook for xmobar?  Currently, my logHook looks like this:</div><div><div>logHook = dynamicLogWithPP $ xmobarPP</div>




<div>                   { ppOutput = hPutStrLn xmproc</div><div>                   , ppTitle = xmobarColor &quot;#a8fc46&quot; &quot;&quot; . shorten 50</div><div>                   , ppOrder = \(ws:_:t:_) -&gt; [ws, t]</div>




<div>                   }</div></div></blockquote><div><br></div></div><div>Easiest is to prepend it:</div><div><br></div><div><div><font face="courier new, monospace">logHook = takeTopFocus &gt;&gt;</font></div><div class="im">

<div><font face="courier new, monospace">          dynamicLogWithPP $ xmobarPP</font></div>
<div><font face="courier new, monospace">                             { ppOutput = hPutStrLn xmproc</font></div><div><font face="courier new, monospace">                             , ppTitle = xmobarColor &quot;#a8fc46&quot; &quot;&quot; . shorten 50</font></div>


<div><font face="courier new, monospace">                             , ppOrder = \(ws:_:t:_) -&gt; [ws, t]</font></div><div><font face="courier new, monospace">                             }</font></div></div></div><span class="HOEnZb"><font color="#888888"><div>

<br></div>
</font></span></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>


<div>unix/linux, openafs, kerberos, infrastructure          <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="&#39;courier new&#39;, monospace"><b>Eyal Erez &lt;</b><a href="mailto:oneself@gmail.com" target="_blank"><b>oneself@gmail.com</b></a><b>&gt;</b><br>

<br></font><div><div><font face="&#39;courier new&#39;, monospace">There are 10 types of people, those who know binary and those who don&#39;t.</font></div></div><div><font face="&#39;courier new&#39;, monospace"><br></font></div>

<br>
</div>