On Fri, 28 Oct 2005 13:00:28 -0500 Paul Johnson <[EMAIL PROTECTED]> babbled:
> I have about 1.5 Gigabytes of background images and like to randomly > select them from subdirectories. Desk 1 is pictures of Italy, 2 is > France, 3 is giant faces, etc. > > 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. it doesnt have to be. edje supports jpeg compression WITH ALPHA channels as well - it can store the image in almsot the same size (with maybe an extra 1-5kb of packaging and geome edje data) - it's all in how u tell edje to encode the file. you can choose RAW, COMP or LOSSY. LOSSY takes an integer parameter after it that is the quality level 0-100. identical to jpeg. > 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/France > > That 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 > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
