Re: [wmii] Tags

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Sat, 11 Mar 2006 18:30:29 +0100

On Sat, Mar 11, 2006 at 04:49:58PM +0100, Erik Ivarsson wrote:
> Maybe this have been discussed earlier but is it possible to select
> multiple tags at once?
> For example if I have a group of windows used for some task and another
> for some other task but for some reason wants to show them at once.
> Tried "echo -n select 1 2 | wmiir write /ctl" but that doesn't seem to
> work. Do I have to change the tags of one of the groups to include the
> other one?

I did some prototypical tests of such behavior, but it was
somewhat redundant, because you could write a script which
adds/removes say a 'join' tag to all kinds of clients you want
to join. Thus I think it is better to have only one way and not
two. The problem for select '1 2' is not the join, but the
inheritance of new clients and to easily getting rid of the
join. It is also easier to recognize the relation that a ws can
only be a single tag, but clients can have arbitrary tags.

Note that appending tags (writing with IXP_OAPPEND resp.
9P_OAPPEND) has been removed from wmiir, because it seemed to be
a too rare case. To achieve what you ask you could do:

(Assume $1 and $2 are the tags you want to join):

for i in `wmiir read /clients'; do
        tags=`wmiir read /clients/$i/tags'
        if test $tags = $1 -o $tags = $2; then
                wmiir write /clients/$i/tags "$tags join"
        fi
        ;
done
echo -n select join | wmiir write /ctl

(Note I didn't tested it, might contain some syntax errot, but
the idea should be clear)
                
> Mplayer seems to crash when activating fullscreen.

Yes, known.

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Sat Mar 11 2006 - 18:30:29 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:02 UTC