Paul Johnson wrote: > Hello! > > E DR17 is running well for me, after that brief dust-up with the > battery module using all of the CPU. (thanks for your help) > > Several years ago, I checked in on E, and I gave up because I thought > working with edje was too difficult. I did not want to point and > click through a giant directory of JPEG files to create the edj files. > > Now I notice E has a slideshow module, but it doesn't just fire up a > slideshow in a directory of ordinary images. It will preview jpg > files, but it does not seem to generate the edj files necessary to > actually make the backgrounds show. > That's because the existing slideshow module in e_modules was made to cycle edj background files. So basically, if you have a list of backgrounds (let's say ~/.e/e/backgrounds), it will cycle through that list on an interval, Setting the background.
devilhorns > But i have a solution to offer. > > Now in edje_cc I find an option for cpp-like customization of the > interaction between edje_cc and the edc file, so I've found I am able > to script the creation of edj files and set them on desktops. I'm > attaching 2 files, one is a template edc file you put in your home > .e/e/backgrounds, and a perl script. The perl script will pick a jpg > file from a directory you indicate and it will put that either on the > common E background (if your command does not include a workspace > number) or on a particular desktop. > > I did not do much special in the edc file, I don't know much on the > syntax. I got it by using edje_decc and studying the output. If you > have suggestions about how this could work better, please tell me. I > do NOT want to copy the jpeg files into the edj, that takes lots of > space. These are edj files that just have the reference address to the > images, and if you rename or remove your image files, the edj files > will fail. > > Put the perl script anywhere in your path (I put it in ~/bin), and you > will see the wonder and beauty. > > There are comments in the beginning of the perl file, but to save you > the trouble, here are some example usages. > > > # epjbackground -w 4 -d /usr/local/share/backgrounds > # > # give argument -d [directory name] to recursively search for image files > # give argument -w [workspace number] to specify workspaces. > # > # I prefer to number them 1, 2, 3, but E calls them 0, 1, 2. > # Here, 1 puts an image on E's desktop 0. > > ## If you omit the -w option, then the image will be set to the common > background. > > > # To delete edj files that are replaced with new images, add the > # option -c with the argument "Y" "y" or "1" > > If you just want to create a lot of edj files from a directory of JPG files, > this script is not the most efficient way because it randomly selects files. > But it shows how you could create the edj files for a big directory of jpg > images, (or other formats that are supported by edje_cc). I could give you > some pointers if you can't see quite what to do. > > > PJ > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
