PDA

View Full Version : How to: create background sets thet periodically change (like the space one)



theGiallo
June 8th, 2010, 10:35 AM
Have you noticed the space "background set" that is in Ubuntu from the 9.04?

http://img63.imageshack.us/img63/4632/spacebgset.png

It is an xml file (as I discovered on this beautiful forum :D).

But creating it manually is very boring and long, it would be simpler to put wallpapers into a directory and use them all as background set. So I've created a simple script that generate the xml background file with the images in a directory. You can set the time duration of wallpapers and of transitions setting the proper parameters.

here's the link to the script:
generateXMLBackground.sh (http://digilander.libero.it/giallodue/development/ubuntuscripts/generateXMLBackground.sh)

How to use it?


Create a directory and put into it all images you want to be in the background set
Open a terminal [Applications->Accessories->Terminal]
Type "cd " and drag into the terminal the directory previously created and press enter
Drag into the terminal the script generateXMLBackground.sh and press enter [you can use parameters -t -d. For help use the parameter -h]
The xml file has been created!!
Now you only have to set it as background:
in the "Change desktop background" window click "Add", navigate to the directory created at the beginning, set the type filtre to "All files" (at right bottom, normally it is 'Images') and choose the .xml file named #DIRNAME#Background.xml.


Note:
if you cannot run the script generateXMLBackground.sh you have not rights type into the terminal "chmod +x " drag the script and press enter (to make it executable).

K.Mandla
June 11th, 2010, 03:09 AM
Moved to Desktop Environments.

llawwehttam
June 11th, 2010, 03:19 AM
http://feedproxy.google.com/~r/d0od/~3/wsCHfLX_mNI/crebs-ultimate-wallpaper-slideshow.html

JohnnyC35
June 11th, 2010, 03:25 AM
To switch desktop wallpapers I use Drapes. Give it a directory to get wallpapers from, tell it how to scale them and how many minutes to change it, and it just works :)

Tigerclawz
June 11th, 2010, 05:53 AM
I was always too slack to do it myself, but given the convenience, I'll deffinately use this. Thanks a bunch. :)

pietjanjaap
June 11th, 2010, 06:03 AM
Wallpaper Tray

gingivere0
June 11th, 2010, 11:00 AM
There's also gbackground that comes in the directories. Just point it to the directory with your desired background and tell it how often it should change.

cptr13
June 11th, 2010, 06:47 PM
I second using "drapes" for this. It's the simplest wallpaper changing program I've found under linux. Install it from the repository, import your wallpapers and that's it. Simple, easy and effective!

quirkification
June 11th, 2010, 09:01 PM
I just got drapes... Yea that was simple.
If you wanted to have multiple sets of wallpapers though, you will need something else.

ffixcollector
June 11th, 2010, 10:27 PM
I used to use drapes, but since I've upgraded to 10.04, it does not run on startup. Anyone have a fix for this?

gingivere0
June 11th, 2010, 11:38 PM
It sounds as simple as System>Preferences>Startup Applications. Then look to see if drapes is on the list. If it is, check the little tick box and it'll be there on the next login/restart. If not click on new and add the command and name it.

JohnnyC35
June 12th, 2010, 01:05 AM
Go to this thread: http://ubuntuforums.org/showthread.php?t=1486921&highlight=drapes
... or actually I'll just paste from it...

From Wired99 (Post #2)


Re: Drapes Wallpaper management
I found the answer.

I added the following line to ~/.config/autostart/drapes.desktop :

Code:
Type=Application
saved the file and DONE!!

I found the answer in a bug report:
https://bugs.launchpad.net/drapes/+bug/292051

I hope this helps someone else as well.

theGiallo
June 12th, 2010, 11:21 AM
hey I didn't see my thread because it was moved :D


http://feedproxy.google.com/~r/d0od/~3/wsCHfLX_mNI/crebs-ultimate-wallpaper-slideshow.html

Hei! Yes that seems to be more useful and complete than my tiny tiny script! :D i didn't find it!


And for those who write to use other programs:
me too used that programs, but just because they are other programs they uses CPU and battery, so I prefer to use an already built in feature.

EvCrock
June 12th, 2010, 08:53 PM
Whoa! Desktop Drapes works great!!

not exactly great, it's a little buggy, but it gets the job done

ecksun
December 19th, 2010, 08:34 PM
I liked this script. There were no package for crebs and I was to lazy to package it, so I used this instead, which didnt require installation.

However there are a couple of issues.


Couldnt handle spaces in filenames
Parameters were mixed up
Off by one error, missed the first file

Im including a patch that fixes all those issues, apply it with patch < generateXMLBackground.patch once you extracted it.

theGiallo
December 19th, 2010, 09:40 PM
I liked this script. There were no package for crebs and I was to lazy to package it, so I used this instead, which didnt require installation.

However there are a couple of issues.


Couldnt handle spaces in filenames
Parameters were mixed up
Off by one error, missed the first file

Im including a patch that fixes all those issues, apply it with patch < generateXMLBackground.patch once you extracted it.

oh, I didn't noticed those bugs...

thanks for fixing :D