FVWM: query pager labels?

From: Victor Eijkhout <eijkhout_at_cs.utk.edu>
Date: Fri, 25 Oct 2002 11:05:32 -0400

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 <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 Fri Oct 25 2002 - 10:45:28 BST

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