ever wanted ubuntu to have that nice ability to change wallpapers every now and then? I wrote a script just for that and I&#39;m going to tell you about it so that you can make it do exactly what you want too!<br>it&#39;s easy. just place a command to ubuntu start up the script to start up the wallpapers.sh script in the background. Ubuntu&#39;s script that you can edit that&#39;s executed every time you log in is ~/.profile<br>
(I&#39;ve tried using ~/.bash_profile and i haven&#39;t been able to get it to execute. if you find that you can make an alternative to ~/.profile like ~/.bash_profile or something and get it to execute on start up, let me know.)<br>
<br>anyway, save the script that I have included and place this in the ~/.profile<br><br>if [ -f &lt;locationofscript&gt;/wallpaper.sh ];<br>then<br>&lt;location of script&gt;/wallpaper.sh -t TIME -s SETTING LOCATIONSWHERETOLOADWALLPAPERS &amp;<br>
fi<br><br>this will check to make sure that the file wallpaper.sh exists, and then it will execute it in the background. you can add as many locations as you want, make sure to quote them correctly. if you don&#39;t specify TIME it will default to 300. TIME is the argument that tells the script how many seconds to wait between changing wallpapers. so 300 means 5 mins of course. To quickly check that it works use -t 1 so that it changes every second. <br>
<br>the -s option is for setting. it is applied in the command that sets the current picture that it&#39;s on within the folder(s) you specified to be the desktop background. There are 4 options:<br>stretched, centered, scaled, and wallpaper. to understand this, just go to set your background using the usual themes gui and look at the bottom left. you&#39;ll see a little drop bar with these four options. that&#39;s what they have to do with. be sure and SPELL THE SETTING RIGHT when you enter the command or it will fail. <br>
<br>Any time you need to add a wallpaper to the lineup, just drop it into one of the directories that you specified in the ~/.profile and it will be used next time you run the wallpapers.sh script. you will need to kill the current running script in order to make the wallpaper.sh script load correctly.<br>
<br>A good option to pass it is /usr/share/backgrounds and /usr/share/backgrounds/cosmos, which is the location of the default backgrounds provided with ubuntu. it&#39;s really easy, i don&#39;t think you could mess this one up. just make sure you get the quoting right;<br>
wallpaper.sh &quot;location1&quot; &quot;location2&quot; ... on and on :)<br><br>remember this about the script and where you specify your wallpapers as the argument to it;<br>THE PICTURES MUST BE ABLE TO FIT THE SETTING YOU SPECIFY so that when it is applied to the desktop, it looks right. so keep all of the <br>
<br>Let me know if you have any trouble, i will try and do what i can to help you. :)<br><br>