Re: [wmii] Code Snippet view all clients on specific tag (idea)

From: Ruben Gonzalez Arnau <ruben_AT_websbarcelona.com>
Date: Sat, 22 Mar 2008 06:44:00 +0100

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
Received on Sat Mar 22 2008 - 06:44:35 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:38:39 UTC