Re: FVWM: fvwm built-in function

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Mon, 25 Dec 2000 21:40:12 +0100

On Mon, Dec 25, 2000 at 04:17:46AM +1100, Shao Zhang wrote:
> Hi,
>
> Michael Han [mikehan_at_mikehan.com] wrote:
> > The whole manpage documents the built-in functions. Move-or-Raise is
> > not a built-in function. It's defined in many default .fvwm2rc
> > configurations via the AddToFunc built-in. I thought I saw you write
> > that you're on Debian. The Debian package of fvwm2 probably defines a
> > lot of defaults somewhere like /etc/X11/fvwm2/ or something like that,
> > so maybe that's what you're trying to find out. But basically, the
> > documentation is, as far as FVWM itself is concerned, complete.
>
> Ok, now I understand. I misunderstood the built-in bit. But after reading a bit
> man pages, I still cannot figure out my keybinding requirement.
>
> I want to bind Alt-Left(right, up, down) to move the window in the current
> viewport to the viewport next to it. Eg. Alt-left will move the window to the
> viewport in the left with exactly the same placements and go to the left
> viewport as well.
>
> I use the following keybindings to scroll between viewports and it works very
> well for me:
> Key Left A C Scroll -100 +0
> Key Up A C Scroll +0 -100
> Key Right A C Scroll +100 +0
> Key Down A C Scroll +0 +100
>
> Now to move the windows, I tried:
> Key Left A M Move -100 +0
> Key Up A M Move +0 -100
> Key Right A M Move +100 +0
> Key Down A M Move +0 +100
>
> But it does not move the window with the same placements. MoveToDesk seems to be
> what I need. But after reading about it, it needs a relative viewport number as
> an argument, which means if I change my viewports from 2x4 to 4x2, or 1x8, then
> it won't work anymore.

You are looking for the MoveToPage command. In 2.2.x, you can
only give it an absolute page number, so what you want can not
easily be accomplished. In 2.3.x you can also use relative page
offsets:

  Key Left A M MoveToPage -1p 0p
  Key Up A M MoveToPage 0p -1p
  Key Right A M MoveToPage 1p 0p
  Key Down A M MoveToPage 0p 1p


Bye

Dominik ^_^ ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Mon Dec 25 2000 - 17:07:01 GMT

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