On 4/16/06, Viktor Griph <[EMAIL PROTECTED]> wrote: > On Sat, 15 Apr 2006, Elliot Sowadsky wrote: > > Heres how i do it. > > > > AddToMenu Applications Applications Title > > + app StartOnCurrentDesk app appname > > > > AddToFunc StartOnCurrentDesk > > + I PipeRead `echo Style $1 StartsOnPage $[desk.n] $[page.nx] > > $[page.ny]` > > + I Exec exec $0 > > > > There is no needto PipeRead that Style command. > > Some applications support the -xrm flag to specify resources. In that case > it's more efficient to do, for example for xterm: > Exec exec xterm -xrm "*Page:$[desk.n] $[page.nx] $[page.ny]" >
Hi again. It doesn't seem to work.. It appears that the "current page" vars get updated before they are read. Here's what I have: (...) DestroyFunc StartHere AddToFunc StartHere #+ I Piperead `echo Style $1 StartsOnPage $[desk.n] $[page.nx] $[page.ny]` + I Style $1 StartsOnPage $[desk.n] $[page.nx] $[page.ny] + I Exec exec $0 ##### Apps: DestroyFunc Browser AddToFunc Browser + I StartHere firefox Firefox (...) If I call the "Browser" function on one page and move to the next one, it will show up on the last page, instead of the first as expected. If it helps I have fvwm-cvs.. Cheers, Renato
