Re: FVWM: echo complicated environment variables

From: Victor Eijkhout <eijkhout_at_cs.utk.edu>
Date: Tue, 22 Oct 2002 16:24:02 -0400

> > Echo $[pict-0-$[page.nx]-$[page.ny]]
>>
>> gives
>>
> > [FVWM][Echo]: $[pict-0-$[page.nx]-0]



>Anyway, if you add additional dollar at the beginning:
>
> Echo $$[pict-0-$[page.nx]-$[page.ny]]
>
>it will be expanded as you want (I hope so, because you didn't say what
>you want to get):
>
> [FVWM][Echo]: $[pict-0-2-3]

Actually, then I want *that* to be expanded. I guess I can do that
with a two-step process.

What I want is first to

SetEnv pict-$$d-$[page.nx]-$[page.ny] 1

(that works, I tried)
and then be able to test it in

Exec if [ $[pict-$$d-$[page.nx]-$[page.ny]] -ne 1 ] ; then
xvirtualroot -f <picture for this desk and page>


Ultimate goal: integrate FvwmBacker & xvirtualroot to get background
picture per desktop & maybe per page. Something like

*FvwmBacker: Command (Desk *,Page * *) Function ChangeDesk
DestroyFunc ChangeDesk
AddToFunc ChangeDesk
+ I Exec if [ $[pict-$$d-$[page.nx]-$[page.ny]] -ne 1 ] ;
              then xvirtualroot -f $[HOME]/.fvwm/$$d.xpm
                              -xrm "*Desk: $$d $[page.nx] $[page.ny]" ; fi
+ I SetEnv pict-$$d-$[page.nx]-$[page.ny] 1


-- 
Victor Eijkhout <eijkhout_at_cs.utk.edu>
tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F)
http://www.cs.utk.edu/~eijkhout/
--
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 Oct 22 2002 - 15:26:15 BST

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