This simple tutorial shows how to manually create a desktop slideshow with your photos in Ubuntu 20.04 LTS.
If you’re just looking for an automatic wallpaper changing software, here are four choices.
In Ubuntu Gnome, you can create your own wallpaper slideshow with simple XML file, then select it in Background settings.
XML slideshows in Background settings are displayed with a small clock emblem in the lower-right corner of the preview. (See the red rectangle area in the picture)
To create desktop slideshow via XML:
1.) First create an empty document, and re-name it to FILE_NAME.xml.
- It’s not important where to put the XML file. In my case, I created it in sub folder of my Pictures directory:
- And the name is not important. In my case, it’s
2.) Open the XML file with text editor and write following line:
<?xml version="1.0" ?> <background> <static> <duration>60.0</duration> <file>/home/ji/Pictures/Wallpapers/Pic1.jpg</file> </static> <transition> <duration>0.5</duration> <from>/home/ji/Pictures/Wallpapers/Pic1.jpg</from> <to>/home/ji/Pictures/Wallpapers/Pic2.jpg</to> </transition> <static> <duration>300.0</duration> <file>/home/ji/Pictures/Wallpapers/Pic2.jpg</file> </static> <transition> <duration>0.5</duration> <from>/home/ji/Pictures/Wallpapers/Pic2.jpg</from> <to>/home/ji/Pictures/Wallpapers/PicN.png</to> </transition> <static> <duration>60.0</duration> <file>/home/ji/Pictures/Wallpapers/PicN.png</file> </static> <transition> <duration>0.5</duration> <from>/home/ji/Pictures/Wallpapers/PicN.png</from> <to>/home/ji/Pictures/Wallpapers/Pic1.jpg</to> </transition> </background>
The file content is easy to read. It starts with
<?xml version=”1.0″ ?>, then follows with a
<background> node, you can add as many
<transition> nodes as you can depends on number of wallpaper files.
<static> node contains display time (in seconds) and path to the picture file, the
<transition> contains transition time and files.
Make the XML slideshow visible in Background settings:
Open terminal (Ctrl+Alt+T) and run command to create the .local/share/gnome-background-properties folder if not exist:
Then create the config file and open with Gedit text editor:
When it opens, paste following lines and change the file path in
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd"> <wallpapers> <wallpaper deleted="false"> <name>Wallpaper Slideshow created by Ji</name> <filename>/home/ji/Pictures/Wallpapers/slideshow/wallpaper-slideshow.xml</filename> <options>zoom</options> </wallpaper> </wallpapers>
Finally open or re-open Background settings and you should see the new created background slideshow.