Re: [dwm] piped input to dwm

From: <lordkrandel_AT_gmail.com>
Date: Fri, 12 Oct 2007 19:28:05 +0200

Xavier wrote:
> But "man tail" is your friend :
-s, --sleep-interval=S
with -f, sleep for approximately S seconds (default 1.0) between iterations.

method 1)
    while [ 0 ]; do sleep 1d; done > $HOME/pipe &
    exec /usr/local/bin/dwm < $HOME/pipe
method 2)
    tail -f -s 0.1 $HOME/pipe | exec/usr/local/bin/dwm

Still prefer the first method. I have an empty loop cycling instead of tail.
I am still working on the idea of sending commands to dwm at runtime, as
slowly as my non-existent C skills allow.

    echo "normbgcolor #eeeeee" > pipe

Wyrmskull
Received on Fri Oct 12 2007 - 19:29:23 UTC

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