Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Last active May 4, 2020 07:04
Show Gist options
  • Select an option

  • Save e-minguez/e3526132b76894f18b627c99757fcb84 to your computer and use it in GitHub Desktop.

Select an option

Save e-minguez/e3526132b76894f18b627c99757fcb84 to your computer and use it in GitHub Desktop.
Wallpaper slideshows in GNOME

Generate wallpapers from pictures:

<background>
        <starttime>
                <year>2018</year>
                <month>1</month>
                <day>1</day>
                <hour>0</hour>
                <minute>0</minute>
                <second>0</second>
        </starttime>

        <static>
                <file>/home/edu/Pictures/wallpapers/dynamic/moon/0.jpg</file>
                <duration>3456.0</duration>
        </static>

        <static>
                <file>/home/edu/Pictures/wallpapers/dynamic/moon/1.jpg</file>
                <duration>3456.0</duration>
        </static>
...
</background>

Configure the wallpaper

  1. Create a new directory::
mkdir -p ~/.local/share/gnome-background-properties
  1. Add a new file in this directory named custom.xml with this content::
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
 <wallpaper deleted="false">
  <name>myfancywallpaper1</name>
   <filename>/path/to/dynamic-wallpaper1.xml</filename>
   <options>zoom</options>
 </wallpaper>
 <wallpaper deleted="false">
  <name>My Fancy Wallpaper 2</name>
   <filename>/path/to/dynamic-wallpaper2.xml</filename>
   <options>zoom</options>
 </wallpaper>
 ...
</wallpapers>

Next we need to reference our dynamic-background.xml file from the Gnome 3 Settings

  1. Open the "Activities" overview and start typing "Settings"
  2. Click on "Background"
  3. Select either the "Background" or "Lock Screen"
  4. Find your dynamic background entry and select it

Some cool pictures

References

https://github.com/almet/gnome-background-generator/pull/7/commits/6cbaf04c6f1fda5c3b2ec512a1db5f6de6f822a5 https://opensource.com/article/17/12/create-your-own-wallpaper-slideshow-gnome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment