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`)
-- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Science http://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700
-------------------------------------------------------
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
