Re: FVWM: How to move to the next/previous page

From: Phil Stracchino <alaric_at_caerllewys.net>
Date: Thu, 20 May 2004 17:10:01 -0400

On Thu, May 20, 2004 at 10:46:21PM +0200, Marc Schlienger wrote:
> Hi,
>
> I want to create a function that moves a window to the next/previous page. For
> example, if the current Page is 0 1 I want the window to be moved to
> Page 0 2.
>
> Any ideas?


Try this (it requires FvwmPerl and assumes a 4x4 grid):

DestroyFunc MoveWindowToNextPage
AddToFunc MoveWindowToNextPage
+ I WindowId ${w.id} MoveToPage \
                %{ ${page.nx} < 3 ? ${page.nx} + 1 : \
                        ${page.ny} < 3 ? 0 : 3 }% \
                %{ ${page.nx} < 3 ? ${page.ny} : \
                        ${page.ny} < 3 ? ${page.ny} + 1 : 3 }%

This should consider 3,3 as the "last page" and not try to move a window
on beyond it. By changing both occurrences of ': 3 }%' to ': 0 }%', you
could make the "next page" from 3,3 wrap around to 0,0.


-- 
 .*********  Fight Back!  It may not be just YOUR life at risk.  *********.
 : phil stracchino : unix ronin : renaissance man : mystic zen biker geek :
 :  alaric_at_caerllewys.net|phil-stracchino_at_earthlink.net|phil_at_novylen.net  :
 :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)   :
 :    Linux Now!   ...Because friends don't let friends use Microsoft.    :
--
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 Thu May 20 2004 - 16:12:57 BST

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