[xmonad] Re: xmobar PipeReader doesn't work

Xie Hanjian jan.h.xie at gmail.com
Fri Mar 13 09:24:02 EDT 2009


* Norbert Zeh <nzeh at cs.dal.ca> [2009-03-13 08:39:37 -0300]:

> > Sorry I paste the wrong version of my .xmobarrc, I do have it in my
> > template ..
> > 
> > Config { font = "xft:Wenquanyi Bitmap Song:pixelsize=12"
> >                     ...
> >                     , Run PipeReader "/dev/shm/lrcfifo" "lrc"
> >                     ]
> >        , sepChar = "%"
> >        , alignSep = "}{"
> >        , template = "%StdinReader% }{ %lrc% <fc=#8ae234>%Mail%</fc> %cpu% %memory% %eth0|wlan0% %battery% [%vol%] %date%"
> >        }
> 
> Hmm, it seems that xmobar's pipereader isn't broken per se, as I just
> tried it on a pipe here.  Here are a few things you can do to get more
> info about the problem:
> 
> 1) Check whether the pipe you list above actually produces any data,
>    independently of xmobar.  Eg, you should be able to just do "cat
>    /dev/shm/lrcfifo" and see what is spits out.

yes I can see data in output. 

> 
> 2) Create a pipe somewhere with "mkfifo foo" and edit your rc file to
>    read this pipe instead.  Then fire up xmobar and in your terminal
>    do "cat > fifo".  Then start typing lines and see whether they show
>    up in xmobar.

Interesting. This test doesn't work here. Platform dependent?

(I'm using linux x86_64 and ghc 6.8.2)

Thanks,
Jan

> 
> Cheers,
> Norbert

-- 
jan=callcc{|jan|jan};jan.call(jan)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20090313/53804ff9/attachment-0001.bin


More information about the xmonad mailing list