EDIT: Solved below, I keep this as reference
Hi, people. I was bored so I started to play with another thing:
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: Cmd "exec"
*FvwmEvent: new_page 'echo "Página: $[page.nx], $[page.ny]" | \
osd_cat -p bottom -o 5 -A left -d 3 -c lightsteelblue -O 1 -u grey20 \
-f "-*-terminus-*-r-*-*-32-*-*-*-*-*-iso10646-1"'
This is supposed to bind the new_page event (that, AFAIK, is issued each time that I change the actual page), to that silly osd command that is above. It should display a message telling me which is the actual page when I change the page. The good thing: the message appears (weird fonts 'cause xosd is weird, but that is another topic). The bad thing: the page is always [0,0]. So, I assumed that, “echo” cannot read the variables and thus, asign a cool ‘0’ to each one of them.
False theory. I changed the vars to a non existant ones and the command does not even run. So, the problem seems to be that my variables does not show a correct value. How can this be? Changing via the pager of via the mouse thru the border of the page does not make any difference. It is always [0,0], regardless of what page I am in.
I have a 1x4 page layout in only one desktop.
EDIT: If I go to another page and do this in FvwmConsole:
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: Cmd "exec"
*FvwmEvent: new_page 'echo "$[page.nx] $[page.ny]" | \
osd_cat -p bottom -o 0 -A left -d 3 -c lightsteelblue -O 1 -u grey20 \
-f "-*-terminus-*-r-*-*-32-*-*-*-*-*-iso10646-1"'
Nothing changes. In the contraty, if I do “Echo $[page.nx] $[page.ny]” into the same console, and then switch to vc1, I can see the correct numbers, depending on the page I am on. So, what’s happening here? The variables are correct, but “echo” cant read them right, or are they modified in their way?
EDIT: Officially, you can kick my ass. All these year working with bash and I still forget to escape the thing when needed. The solution: $[page.nx] I cant believe it!