24 March 2011

Create Wallpaper slideshow in Linux

Wallpaper slideshow is one of the interesting features in the GNOME Desktop. We can enjoy the turn of the desktop within a certain timeframe. By default, Ubuntu has wallpaper slideshow with titles cosmos. Try it.

Now I will teach you how to make wallpaper slideshow manually, although it could just use a wallpaper slideshow application, which unfortunately is not my concern.

Well, prepare a few images as wallpaper and place it in a folder, for example, I put it in the folder / home / alinuxnews / Pictures / slidepaper of contents:
- 1.png
- 2.svg
- 3.jpg
- 4.jpg
- 5.jpg
- Slidepaper.xml

Let's open the file slidepaper.xml or you can open gedit, click new and save with slidepaper.xml name in the folder.
Copas my own code and modification of files / usr/share/background/cosmos/background-1.xml

Contents:

<background>
  <starttime>
    <year> 2011 </ year>
    <month> 01 </ month>
    <day> 01 </ day>
    <hour> 00 </ hour>
    <minute> 00 </ minute>
    <second> 00 </ second>
  </ Starttime>
<! - This animation will from the start at midnight. ->
  <static>
    <duration> 1795.0 </ duration>
    <file> / home/alinuxnews/Pictures/slidepaper/1.png </ file>
  </ Static>
  <transition>
    <duration> 5.0 </ duration>
    <from> / home/alinuxnews/Pictures/slidepaper/1.png </ from>
    <to> / home/alinuxnews/Pictures/slidepaper/2.svg </ to>
  </ Transition>
  <static>
    <duration> 1795.0 </ duration>
    <file> / home/alinuxnews/Pictures/slidepaper/2.svg </ file>
  </ Static>
  <transition>
    <duration> 5.0 </ duration>
    <from> / home/alinuxnews/Pictures/slidepaper/2.svg </ from>
    <to> / home/alinuxnews/Pictures/slidepaper/3.jpg </ to>
  </ Transition>
  <static>
    <duration> 1795.0 </ duration>
    <file> / home/alinuxnews/Pictures/slidepaper/3.jpg </ file>
  </ Static>
  <transition>
    <duration> 5.0 </ duration>
    <from> / home/alinuxnews/Pictures/slidepaper/3.jpg </ from>
    <to> / home/alinuxnews/Pictures/slidepaper/4.jpg </ to>
  </ Transition>
  <static>
    <duration> 1795.0 </ duration>
    <file> / home/alinuxnews/Pictures/slidepaper/4.jpg </ file>
  </ Static>
  <transition>
    <duration> 5.0 </ duration>
    <from> / home/alinuxnews/Pictures/slidepaper/4.jpg </ from>
    <to> / home/alinuxnews/Pictures/slidepaper/5.jpg </ to>
  </ Transition>
  <static>
    <duration> 1795.0 </ duration>
    <file> / home/alinuxnews/Pictures/slidepaper/5.jpg </ file>
  </ Static>
  <transition>
    <duration> 5.0 </ duration>
    <from> / home/alinuxnews/Pictures/slidepaper/5.jpg </ from>
    <to> / home/alinuxnews/Pictures/slidepaper/1.png </ to>
  </ Transition>
</ Background>

Then edit the file / home/alinuxnews/.gnome2/backgrounds.xml
If no, copy it from / usr / share / gnome-background-properties / backgrounds.xml

If at me for wearing my mint copy of linuxmint.xml 8 in the same folder.

Add the following lines before the last line:

<wallpaper deleted="false">
   <name> SlidePaper </ name>
   <filename> / home / alinuxnews / Pictures / slidepaper / slidepaper.xml </ filename>
   <options> zoom </ options>
   <shade_type> solid </ shade_type>
   <pcolor> # 000000000000 </ pcolor>
   <scolor> # 000000000000 </ scolor>
</ Wallpaper>

Well, now look at the Preferences tab Appeareance Backgrounds (Right click on desktop> Change Desktop Background). Click to activate

No comments:

Post a Comment