Re: [dwm] how to detect activity in non-visible tags

From: Julian Romero <julian.romero+dwm_AT_gmail.com>
Date: Thu, 24 Aug 2006 21:52:10 +0200

> Well, if your status refresh is not to fast, you could patch the
> dwm source in client.c:manage(), at the end you could add:
>
> else {
> strcpy(stext, "new client in invisible tag");
> drawstatus();
> }
>
> Then you'd see that message in the status bar until the next
> write operation on stdin occures... if a client shows up which
> isn't visible.

Finally I'm using stdout to get the required information from dwm
(invisible windows being managed) See attached patch.

This is a simplified version of my startup script:
while(true)
do
    uptime
    sleep XX
    if [ -f $STATUS ]
    then
       cat $STATUS
    fi
done | ./dwm | while read LINE
do
    echo dwm: $LINE
    # do something with line
    # like writing it to $STATUS
    # or writing down current date to sumup total work time...
done

-- 
Julián

Received on Thu Aug 24 2006 - 21:52:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:28 UTC