Re: FVWM: FvwmPager position/geometry question

2002-12-25 Thread Johan Svedberg
* 021224 23:44 Johan Svedberg [EMAIL PROTECTED]:
 Hello, world!

 I'm trying to set the position/geometry of the FvwmPager based on the
 screens height/width. I think I need PipeRead for this but I'm afraid my
 skills are not enough. :-)

 I would like it too look something like this (appologies for my terrible
 ascii skills :)):

   X
 ||
 ||
 ||
 ||
 ||
 ||
 Y   ||
 ||
 |  B |
 ||
   A |  1  | 2 | 3 | 4 | 5 | 6  | 7 | 8 | 9 | 10  |
 ||


 What I want is that there should always be 10 pages at he bottom of the
 screen, so the width (B) of the pages would be X/10.

I got quite close to this with:

DeskTopSize 10x1
*FvwmPager: Geometry $[vp.width]x100+0-0

However, the $[vp.width] overlaps abit to te next page, why is this?

 The height (A) of the pages should always be one tenth of the screens
 height (Y/10).

This is still a pussle to me, just used 100 in the above example to test
width, anyone got a solution?

Regards,

--
Johan Svedberg, [EMAIL PROTECTED], http://www.acc.umu.se/~winkle
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: FvwmPager position/geometry question

2002-12-25 Thread Mikhael Goikhman
On 24 Dec 2002 23:38:08 +0100, Johan Svedberg wrote:
 
 I'm trying to set the position/geometry of the FvwmPager based on the
 screens height/width. I think I need PipeRead for this but I'm afraid my
 skills are not enough. :-)
 
 I would like it too look something like this (appologies for my terrible
 ascii skills :)):
 
   X
 ||
 ||
 ||
 ||
 ||
 ||
 Y   ||
 ||
 |  B |
 ||
   A |  1  | 2 | 3 | 4 | 5 | 6  | 7 | 8 | 9 | 10  |
 ||
 
 
 What I want is that there should always be 10 pages at he bottom of the
 screen, so the width (B) of the pages would be X/10.
 
 The height (A) of the pages should always be one tenth of the screens
 height (Y/10).
 
 Could someone help me out with the commands to get this setup?

FvwmPager can't have just any arbitrary width or height.
In your case the width will always be 9 + 10 * N, for example 79 pixels,
because there are 9 separators.

Keeping this in mind, add this line to your config:

  *FvwmPager: DesktopScale 10

This makes a pager to be 9 pixels (or less) wider than needed. Not good.
I may suggest this instead:

  *FvwmPager: Geometry $[vp.width]x99

And of course:

  DesktopSize 10x1
  Style FvwmPager NoHandles, BorderWidth 0  # or non zero to fill the gap

If you need to do some calculations, I would suggest to use FvwmPerl for
this in 2.5.x, or do something like this (3 is for BorderWidth 3):

  PipeRead 'echo *FvwmPager: Geometry `expr $[vp.width] - 3 * 2`x99'

You may need to escape some chars in some cases, like `\\( 3 \\* 2 \\)`.

Regards,
Mikhael.
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: FvwmPager position/geometry question

2002-12-25 Thread Johan Svedberg
* 021225 16:37 Mikhael Goikhman [EMAIL PROTECTED]:
 FvwmPager can't have just any arbitrary width or height.
 In your case the width will always be 9 + 10 * N, for example 79 pixels,
 because there are 9 separators.

 Keeping this in mind, add this line to your config:

   *FvwmPager: DesktopScale 10

 This makes a pager to be 9 pixels (or less) wider than needed. Not good.
 I may suggest this instead:

   *FvwmPager: Geometry $[vp.width]x99

 And of course:

   DesktopSize 10x1
   Style FvwmPager NoHandles, BorderWidth 0  # or non zero to fill the gap

 If you need to do some calculations, I would suggest to use FvwmPerl for
 this in 2.5.x, or do something like this (3 is for BorderWidth 3):

   PipeRead 'echo *FvwmPager: Geometry `expr $[vp.width] - 3 * 2`x99'

 You may need to escape some chars in some cases, like `\\( 3 \\* 2 \\)`.

Thanks Mikhael!

--
Johan Svedberg, [EMAIL PROTECTED], http://www.acc.umu.se/~winkle
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]