On Mon, May 14, 2007 at 11:28:35PM +0200, Robert Manea wrote:
> Well, this cannot work because "tail -f" never terminates, so the sleep
> won't be executed until you specifically terminate tail.
>
>
> Dzen does not have an 'input changed' event, yet (will come with the
> next release). But we can work around this limitation:
>
> tail -f /home/michael/irclogs/im/*bitlbee.log | while read line; do \
> echo "$line"; if [ -e /tmp/dzen2-pid ]; then kill -10 `cat /tmp/dzen2-pid`; fi; \
> done | dzen2 -p -e 'button1=lower;button3=exit;sigusr1=raise;onexit=exec:rm /tmp/dzen2-pid' & echo $! > /tmp/dzen2-pid
>
> Clicking with mouse button1 into dzen will lower it (beneath the other
> windows). As soon as tail outputs new lines dzen will raise to view.
> Button3 terminates dzen.
>
> There is also the possibility to hide dzen (like the well known
> autohiding bars) with the 'hide' action. You would simply change
> "button1=lower" to "button1=hide" and "sigusr1=raise" to
> "sigusr1=unhide".
>
> You could even combine both possibilities if you don't want the 1px line
> dzen shows in hidden state, like "button1=hide,lower" and
> "sigusr1=unhide,raise".
>
>
> Have fun, Rob.
>
>
Many Thanks! I have done it the way you descripted it and it works, as far as
i can see, perfectly...
Now my head is full if ideas what i can "dzen" too. ;-)
Thanks again for your help, and i`m looking forward for your upcoming new
release of dzen.
Greetings
Michael
--Received on Tue May 15 2007 - 01:47:57 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:41:40 UTC