Ruben Gonzalez Arnau wrote:
Kris Maglione wrote:
allview=vall
fn addtag {
    wmiir ls /client | grep -v sel |
    while(c=`{read})
        wmiir xwrite /client/$c/tags +$1
}
fn deltag {
    wmiir ls /client | grep -v sel |
    while(c=`{read})
        wmiir xwrite /client/$c/tags -$1
}

fn Key-$MODKEY-F12 { addtag $allview }
fn Key-$MODKEY-Shift-F12 { deltag $allview }

Uhmm, this is a better & cleaner way to do that.

Thank you!

A little question about +tag and -tag way.

See this, for example if I have a tag called mail, if I use +tag the tag is called mail+tag, but if I use -tag now the tag is called mai (whithout the l) maybe it deletes an extra char or I am doing something wrong.

wmiir read /client/0x800040/tags
mail
wmiir xwrite /client/0x800040/tags +vall
wmiir read /client/0x800040/tags
mail+vall
wmiir xwrite /client/0x800040/tags -vall
wmiir read /client/0x800040/tags
mai

Any idea?

Thank you


--
Ruben Gonzalez Arnau
GPG key: 0x08AF5CD4 http://www.websbarcelona.com/ruben/0x08AF5CD4.asc

Reply via email to