[wmii] Wmii Script does not work

From: Manuel Rotter <rotter.manuel_AT_gmail.com>
Date: Sun, 25 Jan 2009 09:59:25 -0800

Hello,

i am sorry for this random topic, but here is my problem:

I want that WMII does switch between Windows when i press MODKEY-$i
and i am on $i. Sometimes a code says more than 1000 words:

...
        for i in 0 1 2 3 4 5 6 7 8 9; do
                cat <<!
        Key $MODKEY-$i
                if [ `wmiir read /ctl | grep ^view | cut -f 2 -d ' '` == "$i" ]
                then
                        wmiir xwrite /tag/sel/ctl select up
                else
                        wmiir xwrite /ctl view "$i"
                fi
        Key $MODKEY-Shift-$i
                wmiir xwrite /client/sel/tags "$i"
...

But everytime i press MODKEY-1 it switches between the windows, does not
matter if i am on Desktop 1 or 2 or any Desktop else. If i am on
2-9(and 0) and i press MODKEY-2-9 it does nothing, but with MODKEY-1
it does switch, as already said.

I hope someone understands what i try to describe, thanks in advance anyway.

greetings, Manuel
Received on Sun Jan 25 2009 - 17:59:25 UTC

This archive was generated by hypermail 2.2.0 : Sun Jan 25 2009 - 18:00:08 UTC