Re: [dev] [wmii] colrules percentages?

From: Kris Maglione <>
Date: Wed, 25 Aug 2010 13:41:43 -0400

On Wed, Aug 18, 2010 at 06:48:58PM +0300, Nikhilesh S wrote:
>How do the colrules percentages work? Does each number
>represent the percentage of column n as a fraction of the width
>of the whole screen, or of the last selected column before it
>was created, or ... ?
>I ask because I was messing with colrules for GIMP for a while
>but I wasn't able to get it working the way I wanted it.
>I want to make it look like this (which I set up by manually
>resizing the columns with Mod-RMB):-
>I took a screenshot of that setup, got the pixel widths of each
>column and put in the numbers as pix_width_n/pix_width_screen *
>100 for each in the colrules but it still didn't come out right
>(the leftmost one was too small, rightmost too big).
>Thanks for your help! :-)

Sorry, this got lost in the noise. It depends on which version
you're using. The percentage is always a percentage of the
entire screen width. Assume we have a rule: 10+60+20. Before
3.9, the behavior was, when a new column is created it is given
the width of the nth element in the rule. So, when there is one
column, the next column you create gets 60% of the screen width.
When there are two, the next you create gets 20% and all other
columns shrink to 80% of their previous widths. In 3.9 (I
believe), the new width depends on the location of the new
column rather than the total numbers of columns.

I suspect that your difficulty is in the shrinking of all other
columns when a new one is created. I intend to fix this in 3.10
(where you can already specify a column width in pixels rather
than as a percentage of the screen), but I haven't decided on
the exact semantics yet.

Kris Maglione
I can hardly see how anyone ought to wish Christianity to be true; for
if so the plain language of the text seems to show that the men who do
not believe, and this would include my Father, Brother, and almost all
my best friends, will be everlastingly punished.  And this is a
damnable doctrine.
	--Charles Darwin
Received on Wed Aug 25 2010 - 19:41:43 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 25 2010 - 19:48:02 CEST