Re: [dwm] piped input to dwm

From: <lordkrandel_AT_gmail.com>
Date: Thu, 11 Oct 2007 19:12:24 +0200

Anselm R. Garbe wrote:
> On Thu, Oct 11, 2007 at 01:21:14PM +0200, lordkrandel_AT_gmail.com wrote:
>
>> In my .xinitrc
>>
>> mkfifo $HOME/pipe
>> echo "test"> $HOME/pipe &
>> exec /usr/local/bin/dwm < $HOME/pipe
>>
>> Then i open an xterm
>>
>> echo "test" > $HOME/pipe
>>
>> "test" does not appear in the statusbar
>> What am I missing?
>>
>
> echo sends end of file (EOF) after completion.
>
> Regards,
>
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.

Wyrmskull
Received on Thu Oct 11 2007 - 19:13:48 UTC

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