Discussion:
FVWM: $[page.nx] etc. not functioning
m***@crosswire.com
2012-11-06 16:35:24 UTC
Permalink
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?

I am running 2.6.4

Thanks!
Thomas Funk
2012-11-06 19:09:21 UTC
Permalink
Post by m***@crosswire.com
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
0 2 2 -x1400002
Am I correct?
On which page you are?

From your xmessage output your window is here
|
v
+-----+-----+-----+
| 0/0 | 1/0 | 2/0 |
+-----+-----+-----+
| 0/1 | 1/1 | 2/1 | desk 0
+-----+-----+-----+
| 0/2 | 1/2 | 2/2 |
+-----+-----+-----+
^
|
What you want is here. Are your window here?


Thomas
m***@crosswire.com
2012-11-06 20:17:25 UTC
Permalink
-------- Original Message --------
Subject: Re: FVWM: $[page.nx] etc. not functioning
Date: Tue, November 06, 2012 2:09 pm
Post by m***@crosswire.com
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
0 2 2 -x1400002
Am I correct?
On which page you are?
From your xmessage output your window is here
|
v
+-----+-----+-----+
| 0/0 | 1/0 | 2/0 |
+-----+-----+-----+
| 0/1 | 1/1 | 2/1 | desk 0
+-----+-----+-----+
| 0/2 | 1/2 | 2/2 |
+-----+-----+-----+
^
|
What you want is here. Are your window here?
Thomas
My screen is viewing page 2/2, at the time
I hit the F8 key. But I get 0/0 from the
variables.

Any thoughts on fixing or debugging this?

Thanks!
Thomas Adam
2012-11-07 08:05:56 UTC
Permalink
Post by m***@crosswire.com
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
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
b***@t6l.de
2012-11-07 10:00:52 UTC
Permalink
Post by m***@crosswire.com
Key F8 A A Exec xmessage $[desk.n] $[page.nx] $[page.ny] $[w.id]
This works in 2.5.30, but not in 2.6.5
Post by m***@crosswire.com
Key F8 A A Exec xmessage $$[desk.n] $$[page.nx] $$[page.ny] $$[w.id]
This works in 2.5.30 and 2.6.5
Thomas Adam
2012-11-07 10:12:37 UTC
Permalink
Post by b***@t6l.de
Post by m***@crosswire.com
Key F8 A A Exec xmessage $[desk.n] $[page.nx] $[page.ny] $[w.id]
This works in 2.5.30, but not in 2.6.5
Post by m***@crosswire.com
Key F8 A A Exec xmessage $$[desk.n] $$[page.nx] $$[page.ny] $$[w.id]
This works in 2.5.30 and 2.6.5
Correct. And....?

-- Thomas Adam
Bastian
2012-11-07 10:17:09 UTC
Permalink
Post by Thomas Adam
Correct. And....?
... just for info.
m***@crosswire.com
2012-11-07 15:10:11 UTC
Permalink
Post by Thomas Adam
Post by m***@crosswire.com
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
0 2 2 -x1400002
Am I correct?
Nope.
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]?
Thomas Adam
2012-11-07 15:15:38 UTC
Permalink
Post by m***@crosswire.com
Post by Thomas Adam
Post by m***@crosswire.com
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
0 2 2 -x1400002
Am I correct?
Nope.
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

Loading...