
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A small utility to create and set the background.xml file needed for wallpaper slideshows in Gnome.
To use:
1) Extract 'gnome-wallpaper-slideshow' from the archive
2) Double click it and then click run when presented with a dialog
3) Click the 'Select' button and choose your folder containing the images you wish to use in your slideshow
4) Edit the picture duration and transition duration if desired
5) Click 'OK'...
A gnome-wallpaper-slideshow.xml file will be written to ~/.gnome-wallpaper-slideshow and the file will be set as your current background.
Update 5/26: 1.02 uploaded.
Update 5/25: 1.01 uploaded.
Update 5/24: When you click the 'Select' button to choose your folder, it will initially display your Pictures folder. In Ubuntu 9.10 and prior if you click OK without navigating to another folder and back to the Pictures folder, nothing will happen. This is a bug in GTK+ and has been fixed in GTK+ 2.20 shipping with Ubuntu 10.04.
10 years ago
1.02:
- New command line mode which can be used via cron or startup applications to refresh xml when new files are added (ex, ./gnome-wallpaper-slideshow ~/Pictures) use --help for all options
- Images are now sorted alphabetically in the xml file
- Uses case insensitivity when searching for images
1.01:
- Saves background xml file to ~/.gnome-wallpaper-slideshow instead of creating background-1.xml in each of your picture folders
- Saves state on exit to ~/.gnome-wallpaper-slideshow so your last used folder and durations are reloaded on next run
- Will not create duplicate entries in your gnome backgrounds preferences dialog
- Fixed resizing bug on transitions
- Refactored to use libxml2 instead of xml.dom, should be faster and writes the xml files nicer
1.0:
Initial version
10 years ago
1.02:
- New command line mode which can be used via cron or startup applications to refresh xml when new files are added (ex, ./gnome-wallpaper-slideshow ~/Pictures) use --help for all options
- Images are now sorted alphabetically in the xml file
- Uses case insensitivity when searching for images
1.01:
- Saves background xml file to ~/.gnome-wallpaper-slideshow instead of creating background-1.xml in each of your picture folders
- Saves state on exit to ~/.gnome-wallpaper-slideshow so your last used folder and durations are reloaded on next run
- Will not create duplicate entries in your gnome backgrounds preferences dialog
- Fixed resizing bug on transitions
- Refactored to use libxml2 instead of xml.dom, should be faster and writes the xml files nicer
1.0:
Initial version
cerpintaxt
9 years ago
whatever 2 ,lol 5, wallpaper things
when you open the script again ,wont open.and you have to delete the config folder in home.
the problem is related with the space between names in foldername
Report
wyrdoak
9 years ago
wallpaper.addChild(wallpaper.newChild(None, "options", "scale"))
Changed "stretched" to "scale". If I want to stretch now I can just go to the backgrounds settings and set stretch from there.
Thank You for the script.
Report
wyrdoak
9 years ago
wallpaper.addChild(wallpaper.newChild(None, "options", "scale"))
Changed "stretched" to "scale". If I want to stretch now I can just go to the backgrounds settings and set stretch from there.
Thank You for the script.
Report
omgitsmit
10 years ago
http://www.youtube.com/watch?v=xWGX00hVtH4
Text version on my blog @ http://timashley.me/node/721
Thank you for making this, i was starting to curse Wallpapoz!
-Tim Ashley
Report
saxenaakash
10 years ago
Report
saxenaakash
10 years ago
Report
saxenaakash
10 years ago
i have fedora 10 with following installations of python :
/usr/bin/python
/usr/bin/python2.5
however, when i execute the following from tcsh :
> ./gnome_wallpaper_slideshow
it returns me the following error :
File "./gnome_wallpaper_slideshow", line 133
except RuntimeError as strerror:
^
SyntaxError: invalid syntax
BTW : i did not try executing it from gnome window gui : double-click just opens the file in vim.
where am i going wrong ?
thanks !
akash
Report
stewby
10 years ago
Report
saxenaakash
10 years ago
i read your blog, did some "research" on the net, experimented with my own xml files.
finally came to the conclusion that something is broken : the standard /usr/share/backgrounds/solar/solar.xml is not working ! (with duration changed to 5.0)
i wonder if i need to upgrade to recent Fedora / gnome.
thanks for the help !
akash
Report
stewby
10 years ago
If deleting the folder does not work, you can create the xml file manually as described in my blog post which this program was written for http://blog.stewartgateley.com/2010/05/how-to-create-desktop-wallpaper.html.
Report
megadevil
10 years ago
I found a few problems though:
- files with JPG extension instead of jpg are not used for slideshow (might happen with PNG etc, didn't test)
- images added/deleted/renamed on the folder where the images are placed require us to run the script again so the changes are reloaded)
- To get to the settings I have to run the script again, didn't find other way
It would be great to have an option to use pictures online also.
Report
stewby
10 years ago
The settings are stored in ~/.gnome-wallpaper-slideshow/gnome-wallpaper-slideshow.config.
It would be nice to use online galleries, but gnome does not allow URLs for the filenames and it would be impossible to parse all of the different sites. I thought about a new tool which would subscribe to a 'Wallpaper of the day' rss feed but I could not find any such feeds.
Report
megadevil
10 years ago
About the wallpapers: Windows 7 and others have online pictures of the day, maybe this could be used, unless there's any copyright problem.Mac I think also have something like that. I'll try to find some free sites.
About the slideshow, an option for it to be sequential or random would also be cool.
thanks ;)
Report
stewby
10 years ago
There is no Random mode as you cannot specify this in the XML, but they can be shuffled which should be sufficient if the script is being ran via some scheduler. The one I just put up now is a bit of a quick hack, I will need to do some refactoring as there is now a lot of duplicate code for the GUI and command line modes and I will incorporate shuffling into the next one via a command line option.
I've got some other projects I am working on right now but eventually I would like to add an advanced mode to the GUI that would allow you to order the images any way you want and set the durations for each image individually.
Report
ravennetwork
10 years ago
Report
inameiname
10 years ago
http://www.2shared.com/file/QuiQKHnz/Backgrounds.html
Report
johnnyg
10 years ago
Report
stewby
10 years ago
Report
johnnyg
10 years ago
Report
stewby
10 years ago
You might also be interested in my Rhythmbox Dynamic Mode plugin. It keeps your playlist full with recommendations from Last.fm. Default values are set for a very cohesive playlist, but all values can be tweaked through the Rhythmbox UI and are saved in gconf.
Thanks for your consideration in UUE, I am very flattered. I had an idea to extend this app even further with an advanced mode to show a preview of all the images in the directory selected, allow you to re-organize and delete them and set the duration, transition and effects per file. I am starting to kick off a new GoogleTV media player project though so that will likely be on hold for a bit.
Report
erosenninrho
10 years ago
It will be nice to have some extra features like:
-remember last input in "time boxes"
-remember last folder location
Its really good, congratulations for your excellent work!
...one last thing.
¿any recomendations for packs of wallpapers to have?
All the best man,
Report
stewby
10 years ago
Report
erosenninrho
10 years ago
Thank you for taking into account my suggestions, really appreciated.
Keep going! And lets move for this to be incorporated in at least in ubuntu repos!
Thanx again
Report
stewby
10 years ago
As for a wallpaper pack, check out Day of Ubuntu: http://dylanmccall.googlepages.com/DayOfUbuntuSlideshow.tar.gz
What's cool about this pack is it will continuously morph all day. It already includes an xml file with hard coded paths to /usr/share/backgrounds/day_of_ubuntu, but if you wanted to just extract the images and use my tool, set the picture duration to 1 hour and the transition duration to 5 hours.
Report
Ginlemon
10 years ago
Report