On Thursday, 18 November 2004, at 20:17:10 (-0600), Paul Johnson wrote: > Hello. I'm directed here from the Eterm homepage. > > Suppose you start Eterm with > > Eterm -t MyTheme -p /home/pauljohn/pictures1 > > Inside the theme.cfg file, I want to access the value of the path > variable and choose randomly among those files. I'm confounded because > the Eterm seems to take the command line argument and throw it on the > end of the variable rs_path, so I can't figure how to recover that value > inside the theme. > > It is possible to randomly choose a file from a known directory*, but I > don't know how to do it from the command line directory. > > > *Example: this snip from theme.cfg shows how to randomly select a > subdirectory from /home/pauljohn/Termpics, and then grabs an image out > of there: > > path > "./pix/:~/.Eterm/:~/.Eterm/themes/Eterm/pix:~/.Eterm/pix/:/usr/local/share/Termpics/babes/:/usr/share/Eterm/pix" > begin image > type background > state normal > %put(portpath %random(`ls -d /home/pauljohn/Termpics/*`)) > file %random( `find %get(portpath) -name *.jpg`)
This is not currently possible, but I'll consider it for a future release. In the meantime, you could always write a wrapper script. :) Michael -- Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <[EMAIL PROTECTED]> n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org) ----------------------------------------------------------------------- "Feel your breath on my shoulder, and I know we couldn't get any closer. I don't want to act tough; I just want to fall in love as we move into the night." -- Peter Cetera and Crystal Bernard, "(I Wanna Take) Forever Tonight" ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel