Hi,

I tried the following in wmiirc to access named tags by their position in the list:

        for i in 0 1 2 3 4 5 6 7 8 9; do
                sed 's/^        //' <<!
        Key $MODKEY-$i
                wmiir xwrite /ctl view $(wmiir ls /tag | sed "s/\///" | \
                  head -n "$i" | tail -n 1)
        Key $MODKEY-Shift-$i
                wmiir xwrite /client/sel/tags $(wmiir ls /tag | sed \
                  "s/\///" | head -n "$i" | tail -n 1)
!
        done

Unfortunately this is only evaluated once when wmii starts, thus I can only access the tag "1". I there any way to have this evaluated at the time of the key press?

Thanks,
Thomas

Reply via email to