[Xmonad] Can I use xmobar with DynamicLog?
Andrea Rossato
mailing_list at istitutocolli.org
Thu Sep 27 13:59:05 EDT 2007
On Wed, Sep 26, 2007 at 12:44:45AM -0500, Spencer Janssen wrote:
> I'll comment tomorrow on how we might accomplish this without unsafePerformIO
> hacks.
Hi,
so, thanks to Spencer, who gave me the right directions, I came up
with a nice working solution, after a small (well, not that small) API
change.
I've just added a PipeReader plugin, already pushed in my darcs repo:
http://gorgias.mine.nu/repos/xmobar/
Screen shot:
http://gorgias.mine.nu/xmobar/xmobar-logger.png
To use it add such command in the command list of your configuration:
Run PipeReader "/home/andrea/.xmonad.log" "xmonad"
and, in the template:
%xmonad%
Then, in your .xprofile, something like:
PIPE=$HOME/.xmonad.log
rm -f $PIPE
PATH=${PATH}:/sbin mkfifo -m 600 $PIPE
[ -p $PIPE ] || exit
xmobar &
xmonad > $PIPE
Let me know what you think.
Cheers,
Andrea
More information about the Xmonad
mailing list