Re: [dwm] piped input to dwm

From: Robert Manea <rob.manea_AT_googlemail.com>
Date: Fri, 12 Oct 2007 18:00:42 +0200

* lordkrandel_AT_gmail.com (lordkrandel_AT_gmail.com) wrote:
> Ok, now it works
>
> .xinitrc
> mkfifo $HOME/pipe
> while [ 0 ]
> do
> echo "test"
> sleep 1
> done > $HOME/pipe &
> exec /usr/local/bin/dwm < $HOME/pipe*
> *
>
> xterm
> echo "toast" > $HOME/pipe
>
> "toast" appears in status bar for a
> moment and then is replaced back by test.

You can get rid of the nasty EOF problem without using a loop, that
continously replaces your input, like this:

    mkfifo pipe
    tail -f pipe | dwm

And from an xterm or some other source:

    echo foobar > pipe

Note that i actually did not test it with dwm, though it works well with
dzen, so i suppose it will with dwm, too.

> Wyrmskull

HTH, Rob.
Received on Fri Oct 12 2007 - 18:00:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:59:25 UTC