<br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 3:59 PM, Andrew Sackville-West <span dir="ltr">&lt;<a href="mailto:andrew@swclan.homelinux.org">andrew@swclan.homelinux.org</a>&gt;</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;">
<div><div></div><div class="h5">On Thu, Dec 17, 2009 at 10:52:08AM +0100, Jacob Alexandersson wrote:<br>
&gt; Hey all,<br>
&gt;<br>
&gt; I just started trying xmonad out, and I really ilke it. I&#39;ve used ratpoison<br>
&gt; in the past but eventually gave it up. xmonad seems to work better for me so<br>
&gt; far.<br>
&gt;<br>
&gt; I realize this is a xmobar question, but I am guessing there are people on<br>
&gt; this list that uses xmobar also.<br>
&gt;<br>
&gt; I have a .xmobarrc which looks like follows:<br>
&gt;<br>
&gt; &lt;snip&gt;<br>
&gt;<br>
&gt; Config { font = &quot;-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*&quot;<br>
&gt;         , bgColor = &quot;black&quot;<br>
&gt;         , fgColor = &quot;grey&quot;<br>
&gt;         , position = TopW L 100<br>
&gt;         , lowerOnStart = True<br>
&gt;         , commands = [ Run Cpu<br>
&gt; [&quot;-L&quot;,&quot;3&quot;,&quot;-H&quot;,&quot;50&quot;,&quot;--normal&quot;,&quot;green&quot;,&quot;--high&quot;,&quot;red&quot;] 10<br>
&gt;                     , Run Memory [&quot;-t&quot;,&quot;Mem: &lt;usedratio&gt;%&quot;] 10<br>
&gt;                     , Run Swap [] 10<br>
&gt;                     , Run Date &quot;%a %b %_d %l:%M&quot; &quot;date&quot; 10<br>
&gt;                     , Run Com &quot;uname&quot; [&quot;-s&quot;,&quot;-r&quot;] &quot;blaj&quot; 36000<br>
&gt;                     , Run StdinReader<br>
&gt;                     ]<br>
&gt;        , sepChar = &quot;%&quot;<br>
&gt;        , alignSep = &quot;}{&quot;<br>
&gt;        , template = &quot;%StdinReader% }{ %blaj%  %cpu% | %memory% * %swap%<br>
&gt; &lt;fc=#ee9a00&gt;%date%&lt;/fc&gt;&quot;<br>
&gt;        }<br>
&gt;<br>
&gt; &lt;/snip&gt;<br>
&gt;<br>
&gt; ...and in ~/.xmonad/xmonad.hs I have:<br>
&gt;<br>
&gt; &lt;snip&gt;<br>
&gt; ...<br>
&gt; xmproc &lt;- spawnPipe &quot;/usr/bin/xmobar /home/jcx/.xmobarrc&quot;<br>
&gt; ...<br>
&gt; &lt;/snip&gt;<br>
&gt;<br>
&gt;<br>
&gt; All I get is &quot;updating...&quot; where %StdinReader% is placed. Is this correct??<br>
&gt; Am I missing something?<br>
<br>
</div></div>you&#39;ve got the end of the pipe in xmproc, you just need to feed it<br>
some data with something like:<br>
<br>
myLogHook dest = dynamicLogWithPP defaultPP { ppOutput = hPutStrLn dest<br>
                                            ,ppVisible = wrap &quot;(&quot; &quot;)&quot;<br>
                                            }<br>
<br>
  xmonad $ defaultConfig<br>
             { ...<br>
             , logHook = myLogHook xmproc<br>
             }<br>
<br>
hope this helps<br>
<font color="#888888"></font><br></blockquote><div><br>Thanks, that díd the trick. Jasper also helped me out although he didn&#39;t reply to the list. <br>I&#39;m a happy xmonad-newbie. I really dig it! :-)<br><br>//J<br>
</div></div>