Re: FVWM: placement gravity

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 20 Mar 2002 09:44:31 +0000

On 19 Mar 2002 18:45:59 -0700, S. Anderson wrote:
>
> On Tue, Mar 19, 2002 at 11:44:11AM +0100, Dominik Vogt wrote:
> > On Mon, Mar 18, 2002 at 04:17:50PM -0700, S. Anderson wrote:
> > > Hello,
> > >
> > > When a x app is started it pops up at the top left of my screen. Is
> > > there a way to make it pop up starting at the bottom right?
> > > I couldnt see anything about this in the man page
> > >
> > > I was trying to think of a way to do this with FvwmEvent and
> > > AnimatedMove, but not sure if that is possible.
> >
> > Many applications have options like -g, -geom or -geometry. For
> > example with xterm:
> >
>
> I was looking for something more on the lines of what I just found
> in docs/TODO.
>
> - A WindowGravity option that controlls placement direction choices
> for SmartPlacement (and perhaps RandomPlacement)? Perhaps make it
> a Style option??
>
> :-)
>
> Like when the first window opens (and no geometry is specified) it
> is put at +0+0, and then the next is put at +583+0 and so on. I am
> going to try to write a script that will change +0+0 to -0-0 and
> +583+0 to -583-0 etc., and then plug that converted position into
> AnimatedMove to move thæ window. If any one has any easy ways to do
> this please let me know :-), otherwise i will report back when I
> figure it out.

This is all under FAQ 3.18, just be careful with automatical actions.

  *FvwmEvent-ReverseGravity: PassId
  *FvwmEvent-ReverseGravity: add_window FlipWindow

  DestroyFunc FlipWindow
  AddToFunc FlipWindow
  + I WindowId $0 AnimatedMove -$[w.x]p -$[w.y]p

  AddToFunc StartFunction I FvwmEvent FvwmEvent-ReverseGravity

But such flipping is only useful with CascadePlacement.

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 Wed Mar 20 2002 - 03:45:05 GMT

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