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

Reply via email to