Re: [wmii] Re: Raise a client

From: Kris Maglione <>
Date: Mon, 3 Jul 2006 10:52:05 -0400

It would be easier to just patch the source, but this should work also:

wmiir read /event 2> /dev/null |
while read event
        set -- $event
        if test "$1" = "ClientFocus"
                if test $selected -eq 0; then
                        for i in `wmiir read /view/0 | awk -e '$10~/^[0-9]+$/{print $10}'`; do
                                if test "`wmiir read /view/0/$i/index`" -eq $2; then
                                        echo select $i | wmiir write /view/0/ctl

Kris Maglione
As goatherd learns his trade by goat, so writer learns his trade by wrote.
Received on Mon Jul 03 2006 - 16:52:37 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:10:31 UTC