I had a Perl script to randomly choose images and adapted it to Enlightenment, but discovered a problem. The scheduled changes happened every 20 minutes for each desktop, and my home directory filled up its partition. A 100KB image file in jpg format gets stored as an edj file that is 20 or 30 times as big.
So I re-crafted my script to ask E for the name of the *edj file it is currently using and delete that image after the background is changed. This way, I never have more than 6 images in ~/.e/e/backgrounds.
THe script I attach here takes only 2 arguments, the directory for images and the name of the workspace.
I think of workspaces/desktops numbered 1 through 6, not 0 through 5, and the script translates that for me into E speak. If you want to try, type
epjbackground.pl -w 2 -d /usr/local/share/backgrounds/FranceThat will set on workspace 2 (the one E calls 1) an image randomly selected from France (or any subdirectories under there).
In case you want to set the default root menu, leave off the workspace designator. In the script, there is a default image directory specified.
If that does what you like, it is easy to use a BASH script to change the image every now and then.
-- 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
epjbackground.pl
Description: Perl program
