FVWM: Rearranging windows on the current page (was: 2 questions?)

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 25 Jun 2004 20:20:05 +0000

On 26 Jun 2004 01:53:35 +0800, liushidai_at_mails.tsinghua.edu.cn wrote:
>
> > > (2)How to get the number of windows opened in current page?
> >
> > There are several hacky ways, one of them is:
> >
> > DestroyFunc ShowNumberOfWindowsOnTheCurrentPage
> > AddToFunc ShowNumberOfWindowsOnTheCurrentPage
> > + I SetEnv NUMBER_OF_WINDOWS 0
> > + I All (CurrentPage) PipeRead 'echo SetEnv NUMBER_OF_WINDOWS \
> > $$$$(($$$$NUMBER_OF_WINDOWS + 1))'
> > + I Exec xmessage 'There are $[NUMBER_OF_WINDOWS] windows'
> >
> > But I don't know what is your final task, maybe it may be solved easier
> > without calculating the exact number of windows.
>
> I'm trying to resize all windows and arrange them into 'n x n' matrix, ie, if I
> have 4 windows open, it'll be arranged in root this way:
> r---r---r
> | w | w |
> r---+---r
> | w | w |
> r---r---r
>
> Do you have a better idea not to use the exact number of windows?

Maybe using FvwmRearrange module? See the man page.

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 majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jun 25 2004 - 15:22:47 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST