Re: [wmii] an alternative way to dynamically resize windows

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Wed, 5 Apr 2006 20:48:30 +0200

Hi,

fine with me. But I'll rename 'equal' to 'default' instead.

Regards,
        Anselm

On Wed, Apr 05, 2006 at 02:32:25AM +0300, Nep wrote:
> I was thinking about the way the windows are resized when other windows
> appear/disappear from the view. the present way works but I'm not sure it's
> the best.
>
> I often resize my windows so i have a large one and another or others of
> smaller size.
>
> Now if i need let's say a terminal for a few commands the proportions are
> lost.
>
> When i finish my work with the new window and close it I'm left with windows
> of all equal height.
>
> A better way for some (maybe it could be specified in the wmiirc file) would
> be to resize windows according to percentages of the screen estate they take
> up.
>
> Situation: 2 windows on the screen. a window (w1) that takes up 70% of the
> screen height and another one (w2) that takes up 30% (no columns). a new
> window appears on that view.
>
> Then the height of the new window would be 1/3 of the screen height.(like it
> already happens) but the the height of the others would be 70% and 30%
> respectively of the remaining 2/3 of screen.
>
> I think this could be implemented without too many complications.. it just
> means some additional calculation:
>
> ex:
>
> n windows present on screen: w_1,w_2... w_n
>
> their heights: h_1, h_2,... h_n
>
> ScreenHeight: H
>
>
> when a new window w_n+1 with height h_n+1 appears:
>
> height of new window:
>
> h_n+1= H / (n+1)
>
>
> recalculate heights of existant windows:
>
> x from 1 to n
>
> h_x = h_x/H * (H – h_n+1)
>
>
> The reverse when a window is closed.

> _______________________________________________
> wmii_AT_wmii.de mailing list
> http://wmii.de/cgi-bin/mailman/listinfo/wmii

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Wed Apr 05 2006 - 20:48:30 UTC

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