Re: FVWM: Moving windows to page

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 6 Mar 2002 02:32:38 +0000

On 05 Mar 2002 23:43:05 +0100, Dominik Vogt wrote:
>
> On Tue, Mar 05, 2002 at 03:33:33PM -0300, Christian Lyra wrote:
> >
> > Sorry for ask this again but I lost the ond thread, and the mail
> > archive is not working :-(

You mean the search does not work, the archive itself is fine.

> > I want to move a window to another page using the keyboard. The
> > problem is that a little calculation has to be done before move.
> > Someone sent this, but it's no working either!
> >
> > Christian Lyra
> >
> > > > You can't make calculations in fvwm commands. Use the shell via
> > > > PipeRead instead:
> > > >
> > > > Key Left FSTW SCM PipeRead "echo MoveToPage $[$[page.nx]-1] $[page.ny]"
>
> Add another '$' here:
>
> Key Left FSTW SCM PipeRead "echo MoveToPage $$[$[page.nx]-1] $[page.ny]"
> ^^

This would work if the command PipeRead was by itself. But the command
here is Key. If this line is placed in .fvwm2rc it's always equivalent to:

  Key Left FSTW SCM PipeRead "echo MoveToPage $$[0-1] 0"

We should escape all dollars for the Key command. The correct line is:

  Key Left FSTW SCM PipeRead "echo MoveToPage $$$$[$$[page.nx]-1] $$[page.ny]"

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 Tue Mar 05 2002 - 20:33:17 GMT

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