[Xmonad] Can I use xmobar with DynamicLog?
Kai Grossjohann
kai at emptydomain.de
Mon Sep 24 11:36:11 EDT 2007
On Mon, Sep 24, 2007 at 07:58:05AM -0700, David Roundy wrote:
> On Mon, Sep 24, 2007 at 04:55:24PM +0200, Kai Grossjohann wrote:
> > On Sun, Sep 23, 2007 at 02:50:46PM -0700, David Roundy wrote:
> >
> > > On Sun, Sep 23, 2007 at 11:48:45PM +0200, Kai Grossjohann wrote:
> > > > On Sun, Sep 23, 2007 at 10:31:09PM +0200, Andrea Rossato wrote:
> > > >
> > > > > On Sun, Sep 23, 2007 at 10:14:04PM +0200, Kai Grossjohann wrote:
> > > > > > I've just started to use xmobar. It's cool. But I still need dzen2 for
> > > > > > the DynamicLog stuff. Is there another way?
> > > > >
> > > > > No, for the time being. I can easily write a plugin if you use a log
> > > > > file, but reading a named pipe is almost impossible for xmobar.
> > > >
> > > > Maybe DynamicLog could create a symlink whose target is the string to
> > > > display.
> > >
> > > What would be wrong with using a file?
> >
> > It would grow.
>
> Unless you did the same thing to the file that you'd do with the symlink:
> truncate and overwrite it.
Ah, I see. Hm. I was about to say that creating a symlink is an atomic
operation, but now I realize that in this context it isn't, because we
would need to remove the symlink first before creating a new one.
But somehow it's just cool to abuse symlinks for this :-)
rm -f ~/.xmonad.dynamiclog
ln -s " 1 [2]<3> 4 // xterm" ~/.xmonad.dynamiclog
Kai
More information about the Xmonad
mailing list