Re: [dev] [wmii] Between tiling and floating

From: LuX <lux.onthenet_AT_free.fr>
Date: Sun, 1 Aug 2010 00:06:18 +0200

Hello!

> Message de Kris Maglione: lun. 26/07/10, 19:46:43 -0400
> In the sh wmiirc, you'd probably do something like,
>
> master_width=800
> master_tags='foo|bar'
>
> ...
>
> Event AreaFocus if wi_seltag | grep $master_tags >/dev/null; then
> export area=$1
> width=$(wmiir read /tag/sel/index | awk '$2 == ENVIRON["area"] { print $4; exit }')
> delta=$(($master_width - $width))
> if [ $area = 1 ]; then dir=right; else dir=left; done
> wmiir write /tag/sel/ctl grow sel sel $dir ${width}px
> fi

I tried right this without success. For example the single command:
    wmiir read /tag/sel/index | awk '$2 == ENVIRON["area"] { print $4; exit }'
answers nothing (empty string) which is not good, I suppose.
Thank you very much for the hint anyway. I get the idea, so now I
should find a way.

By the way, is there a documentation available for the wi_* functions?
I didn't find them in /usr/share/doc/wmii/wmii.pdf.

> Can't say that I like the idea much myself, but to each his own.

His own… screen, you mean? On the 15" screen I had during my
hollidays, I can swear that such a feature would have been very
convenient.

Best regards,
LuX.
Received on Sun Aug 01 2010 - 00:06:18 CEST

This archive was generated by hypermail 2.2.0 : Sun Aug 01 2010 - 00:12:03 CEST