nathand28
February 20th, 2009, 05:04 PM
I have setup an xml file to change the wallpaper after 10 seconds. This is my first time using xml, so it is just a test. I made a small png file, coloured it red and named it 1.png. I made a second file ,coloured it orange, and named it 2.png, and so on. The background is set to tile.
When the sequence reaches the 8th file, which is the last one, it displays for a few seconds, then changes to the solid colour set in the appearance preferences, which in my case, is white. About 10 seconds later it restarts the sequence.
I am wondering if it is possible have the 8th file display for 10 seconds, then restart, skipping the white screen.
Here is the xml file:
<background>
−
<static>
<duration>1.0</duration>
<file>/home/nathan/Desktop/Picture Test/1.png</file>
</static>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/1.png</from>
<to>/home/nathan/Desktop/Picture Test/2.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/2.png</from>
<to>/home/nathan/Desktop/Picture Test/3.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/3.png</from>
<to>/home/nathan/Desktop/Picture Test/4.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/4.png</from>
<to>/home/nathan/Desktop/Picture Test/5.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/5.png</from>
<to>/home/nathan/Desktop/Picture Test/6.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>~/Desktop/Picture Test/6.png</from>
<to>~/Desktop/Picture Test/7.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/7.png</from>
<to>/home/nathan/Desktop/Picture Test/8.png</to>
</transition>
−
<static>
<duration>0.0</duration>
<file>/home/nathan/Desktop/Picture Test/8.png</file>
</static>
</background>
_________________________________________________
Solved it, turned out that:
1. I hadn't made the script executable;
2. I had put in dir='pwd' instead of dir=`pwd`.
The install script is attached.
When the sequence reaches the 8th file, which is the last one, it displays for a few seconds, then changes to the solid colour set in the appearance preferences, which in my case, is white. About 10 seconds later it restarts the sequence.
I am wondering if it is possible have the 8th file display for 10 seconds, then restart, skipping the white screen.
Here is the xml file:
<background>
−
<static>
<duration>1.0</duration>
<file>/home/nathan/Desktop/Picture Test/1.png</file>
</static>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/1.png</from>
<to>/home/nathan/Desktop/Picture Test/2.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/2.png</from>
<to>/home/nathan/Desktop/Picture Test/3.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/3.png</from>
<to>/home/nathan/Desktop/Picture Test/4.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/4.png</from>
<to>/home/nathan/Desktop/Picture Test/5.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/5.png</from>
<to>/home/nathan/Desktop/Picture Test/6.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>~/Desktop/Picture Test/6.png</from>
<to>~/Desktop/Picture Test/7.png</to>
</transition>
−
<transition type="overlay">
<duration>10.0</duration>
<from>/home/nathan/Desktop/Picture Test/7.png</from>
<to>/home/nathan/Desktop/Picture Test/8.png</to>
</transition>
−
<static>
<duration>0.0</duration>
<file>/home/nathan/Desktop/Picture Test/8.png</file>
</static>
</background>
_________________________________________________
Solved it, turned out that:
1. I hadn't made the script executable;
2. I had put in dir='pwd' instead of dir=`pwd`.
The install script is attached.