Can I retrieve the value of a desktop label in the pager?

Right now I'm setting the values from a form, and saving them additionally in an environment variable:

*NameDesk: Text "Name this desktop:"
*NameDesk: Line expand
*NameDesk: Input deskname 20 ""
*NameDesk: Button quit "OK" ^M
*NameDesk: Command SetEnv label_$d '$(deskname)'
*NameDesk: Command PipeRead `echo "*FvwmPager: Label $d '$(deskname)'"`

so that I can write them out:

AddToFunc ExitFunction
+ I Exec for i in `awk -v n=$[FVWM_N_DESKS] \
             'BEGIN { for (i=0; i<=n; i++) { print i } }' ` ; \
    do eval echo "*FvwmPager: Label $$i \\\"\$label_$$i\\\"" ; \
       eval echo "SetEnv label_$$i \\\"\$label_$$i\\\"" ; \
    done > $[HOME]/.fvwm/labels

(wanna guess how long it took me to find the right combination of eval,$$,\\\ &c?)

but obviously I don't like double bookkeeping. I would like that first eval line above to write out the pager label, as opposed to an environment variable that I hope has the right value.
--
Victor Eijkhout <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to