{"id":32709,"date":"2020-09-04T15:46:36","date_gmt":"2020-09-04T15:46:36","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=32709"},"modified":"2024-04-24T16:27:44","modified_gmt":"2024-04-24T16:27:44","slug":"desktop-wallpaper-slideshow-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/09\/desktop-wallpaper-slideshow-ubuntu-20-04\/","title":{"rendered":"How to Create Desktop Wallpaper Slideshow in Ubuntu 20.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34682\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>This simple tutorial shows how to turn your photos as desktop slideshow by manually creating XML file in Ubuntu 20.04 and Ubuntu 22.04 LTS.<\/b><\/p>\n<p>If you&#8217;re just looking for an automatic wallpaper changing software, <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2022\/05\/make-wallpaper-slideshow-ubuntu-2204\/\" target=\"_blank\" rel=\"noopener\">here are four other choices<\/a>.<\/p>\n<p>In Ubuntu with the default GNOME desktop, user may turn photos into wallpaper slideshow by creating a <b>XML<\/b> file, then select it at any time in the <b>Background<\/b> settings.<\/p>\n<p>XML slideshows in Background settings are displayed with a small clock emblem in the lower-right corner of the preview. (<i>See the red rectangle area in the picture<\/i>)<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-41025\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem-600x351.webp\" alt=\"\" width=\"600\" height=\"351\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem-600x351.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem-300x175.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem-768x449.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-embem.webp 1093w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><i>NOTE: In Ubuntu 22.04, changing wallpaper or slideshow only applies in current color scheme. Switching to Light or Dark mode, also changes the wallpaper setting.<\/i><\/p>\n<h3>Step 1: Create &amp; Edit XML file for slideshow:<\/h3>\n<p>First of all, you have to create a XML and write the rules for which photos to display as slideshow, how long they will be displayed, and the transition orders.<\/p>\n<h4>1. Create XML file<\/h4>\n<p>You can create the XML files in anywhere of your user folder. Though it recommends for software developers to put them in &#8216;<code>~\/.local\/share\/backgrounds<\/code>&#8216; folder.<\/p>\n<p>Here I created a sub-folder called &#8216;<i>slideshows<\/i>&#8216; under my <i>Pictures<\/i> folder. Then, create an empty document and re-name it as <code>.xml<\/code> file.<\/p>\n<div id=\"attachment_41028\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41028\" class=\"size-large wp-image-41028\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml-600x339.webp\" alt=\"\" width=\"600\" height=\"339\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml-600x339.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml-300x170.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml-768x434.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-xml.webp 870w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41028\" class=\"wp-caption-text\">Create a XML file<\/p><\/div>\n<h4>2. Edit XML write the rules:<\/h4>\n<p>After created the file, open it with your favorite text editor and write something look like:<\/p>\n<pre style=\"background: none;\">&lt;?xml version=\"1.0\" ?&gt;\r\n&lt;background&gt;\r\n  &lt;static&gt;\r\n    &lt;duration&gt;60.0&lt;\/duration&gt;\r\n    &lt;file&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic1.jpg&lt;\/file&gt;\r\n  &lt;\/static&gt;\r\n  &lt;transition&gt;\r\n    &lt;duration&gt;0.5&lt;\/duration&gt;\r\n    &lt;from&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic1.jpg&lt;\/from&gt;\r\n    &lt;to&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic2.jpg&lt;\/to&gt;\r\n  &lt;\/transition&gt;\r\n  &lt;static&gt;\r\n    &lt;duration&gt;300.0&lt;\/duration&gt;\r\n    &lt;file&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic2.jpg&lt;\/file&gt;\r\n  &lt;\/static&gt;\r\n  &lt;transition&gt;\r\n    &lt;duration&gt;0.5&lt;\/duration&gt;\r\n    &lt;from&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic2.jpg&lt;\/from&gt;\r\n    &lt;to&gt;\/home\/ji\/Pictures\/Wallpapers\/PicN.png&lt;\/to&gt;\r\n  &lt;\/transition&gt;\r\n  &lt;static&gt;\r\n    &lt;duration&gt;60.0&lt;\/duration&gt;\r\n    &lt;file&gt;\/home\/ji\/Pictures\/Wallpapers\/PicN.png&lt;\/file&gt;\r\n  &lt;\/static&gt;\r\n  &lt;transition&gt;\r\n    &lt;duration&gt;0.5&lt;\/duration&gt;\r\n    &lt;from&gt;\/home\/ji\/Pictures\/Wallpapers\/PicN.png&lt;\/from&gt;\r\n    &lt;to&gt;\/home\/ji\/Pictures\/Wallpapers\/Pic1.jpg&lt;\/to&gt;\r\n  &lt;\/transition&gt; \r\n&lt;\/background&gt;<\/pre>\n<p>The file content is easy to read. It starts with\u00a0<code>&lt;?xml version=\u201d1.0\u2033 ?&gt;<\/code>, then follows with a\u00a0<code>&lt;background&gt;&lt;\/background&gt;<\/code> node.<\/p>\n<p>With in\u00a0<code>&lt;background&gt;<\/code> node,\u00a0you can add as many <code>&lt;static&gt;&lt;\/static&gt;<\/code>\u00a0and\u00a0<code>&lt;transition&gt;&lt;\/transition&gt;<\/code>\u00a0nodes as you can depends on number of wallpaper files.<\/p>\n<p>While the <code>&lt;static&gt;<\/code> node contains display time (in seconds) and path to the picture file, the <code>&lt;transition&gt;<\/code> contains transition time and from to file paths.<\/p>\n<div id=\"attachment_41029\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41029\" class=\"size-large wp-image-41029\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml-600x493.webp\" alt=\"\" width=\"600\" height=\"493\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml-600x493.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml-300x247.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml-768x632.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/slideshow-xml.webp 1041w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41029\" class=\"wp-caption-text\">The XML slideshow file (pic is edited for easy reading)<\/p><\/div>\n<p><i>TIP: You may drag and drop your photo files into Terminal (Ctrl+Alt+T) or web browser&#8217;s URL bar to get the file path quickly!<\/i><\/p>\n<h3>Step 2: Make the XML slideshow visible in Background settings<\/h3>\n<p>After created a XML file, you have to create another one to make it visible in system settings utility.<\/p>\n<p>1. First, press <b>Ctrl+Alt+T<\/b> on keyboard to open a terminal window. When it opens, run command to create the local background properties directory:<\/p>\n<pre>mkdir -p ~\/.local\/share\/gnome-background-properties<\/pre>\n<p>Then open that directory in file manager by running command:<\/p>\n<pre>nautilus ~\/.local\/share\/gnome-background-properties<\/pre>\n<div id=\"attachment_41030\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-open-bgproperties.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41030\" class=\"size-large wp-image-41030\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-open-bgproperties-600x181.webp\" alt=\"\" width=\"600\" height=\"181\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-open-bgproperties-600x181.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-open-bgproperties-300x90.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/create-open-bgproperties.webp 723w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41030\" class=\"wp-caption-text\">Create and open background properties folder<\/p><\/div>\n<p>2. When the folder opens, create empty file and rename it to a <b>.xml<\/b> file with whatever filename as you want.<\/p>\n<div id=\"attachment_41031\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41031\" class=\"size-large wp-image-41031\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-600x339.webp\" alt=\"\" width=\"600\" height=\"339\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-600x339.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-300x170.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-768x434.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow.webp 870w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41031\" class=\"wp-caption-text\">Create another XML in background properties folder<\/p><\/div>\n<p>3. Finally open the new created XML file and paste following lines:<\/p>\n<pre style=\"background: none;\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;!DOCTYPE wallpapers SYSTEM \"gnome-wp-list.dtd\"&gt;\r\n&lt;wallpapers&gt;\r\n  &lt;wallpaper&gt;\r\n    &lt;name&gt;Ji's slideshow&lt;\/name&gt;\r\n    &lt;filename&gt;\/home\/ji\/Pictures\/slideshows\/myslideshow.xml&lt;\/filename&gt;\r\n    &lt;options&gt;zoom&lt;\/options&gt;\r\n    &lt;pcolor&gt;#2c001e&lt;\/pcolor&gt;\r\n    &lt;scolor&gt;#2c001e&lt;\/scolor&gt;\r\n    &lt;shade_type&gt;solid&lt;\/shade_type&gt;\r\n  &lt;\/wallpaper&gt;\r\n&lt;\/wallpapers&gt;<\/pre>\n<p>Here type whatever name within <code>&lt;name&gt;&lt;\/name&gt;<\/code> node, and set the full path to the previous created XML with <code>&lt;filename&gt;&lt;\/filename&gt;<\/code> node.<\/p>\n<div id=\"attachment_41032\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-41032\" class=\"size-large wp-image-41032\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml-600x328.webp\" alt=\"\" width=\"600\" height=\"328\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml-600x328.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml-300x164.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml-768x420.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/09\/apply-slideshow-xml.webp 896w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-41032\" class=\"wp-caption-text\">Apply the previous created XML slideshow<\/p><\/div>\n<p>After saving the file, open or re-open &#8216;Background&#8217; settings, you should see the new created background slideshow.<\/p>\n<h3>Summary:<\/h3>\n<p>In short, you can create a XML file in anywhere of user folder, write the rules to specify which photos to display, how long they will persist, and the transition order. Then, create another XML file in background properties directory to make the slideshow visible in &#8216;Background&#8217; settings dialog.<\/p>\n<p>In theory, the XML should work on all GNOME based Linux, e.g., Fedora Workstation, though I only tested it in Ubuntu 20.04 and Ubuntu 22.04.<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to turn your photos as desktop slideshow by manually creating XML file in Ubuntu 20.04 and Ubuntu 22.04 LTS. If you&#8217;re just looking for an automatic wallpaper changing software, here are four other choices. In Ubuntu with the default GNOME desktop, user may turn photos into wallpaper slideshow by creating [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[579],"class_list":["post-32709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-desktop-slideshow"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/32709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=32709"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/32709\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34682"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=32709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=32709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=32709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}