On Wed, Nov 07, 2012 at 08:10:11AM -0700, msib...@crosswire.com wrote:
> >On Tue, Nov 06, 2012 at 09:35:24AM -0700, msib...@crosswire.com wrote:
> >> Howdy,
> >>
> >> I have a 3x3 DeskTop
> >>
> >> # .fvwmconfig
> >> Key F8 A A Exec xmessage $[desk.n] $[page.nx] $[page.ny] $[w.id]
> >>
> >> I hit f8 while focused in a window in the bottom right page
> >>
> >> # xmessage output
> >> 0 0 0 0x1400002
> >> 
> >> I should get:
> >> 0 2 2 -x1400002
> >>
> >> Am I correct?
> >  
> >Nope.
> >  
> >You want:
> > 
> >Key F8 A A Exec xmessage $$[desk.n] $$[page.nx] $$[page.ny] $$[w.id]
> > 
> >-- Thomas Adam
>    
> Thanks! 
>  
> I am interested in understanding how FVMW interpolates variables. 
> What is the difference between $[w.id] and $$[w.id]?     

FVWM passes down the arguments to each command it runs and interpolates them
all out, hence:

Key .....

Which sees:

Key .... $[...]

Having stripped out the first set of "$".

Then "Exec" which interpolates out your variables for you.

-- Thomas Adam


Reply via email to