(Question at the end)
After getting the black background after trying to use a xml as wallpaper I did some research too see if I could get a dynamic wallpaper working.
I wrote a python script that reads a json(personally think its more readable but it can convert to xml) file containing a path to each image and the time of day I want the that image to be the wallpaper.
The script checks every interval amount of time(defined in the json file), does some math using the wallpaper time and the current time and selects the wallpaper closest to the current time, then runs command
gsettings set org.gnome.desktop.background picture-uri <image path>
Anyway, I went into the source code to see if I could customize transition speed.
I ended up adding transition-speed to com.solus-project.budgie-wm
so I could change it from gsettings.
While in the code I saw a comment saying “do nothing with xml file
” and after it sets the screen to black when passed an xml file.
Here are some examples(this is at 4x speed)
Example Json
{
"updateInterval": 900,
"wallpapers": [
{
"time": 0,
"file": "/home/jonathan/Pictures/Wallpapers/mojave-background/mojave_dynamic_15.jpeg",
"speed" : 100000
},
{
"time": 3,
"file": "/home/jonathan/Pictures/Wallpapers/mojave-background/mojave_dynamic_16.jpeg",
"speed" : 100000
},
Example Xml
<background>
<starttime>
<year>2014</year>
<month>01</month>
<day>11</day>
<hour>0</hour>
<minute>00</minute>
<second>00</second>
</starttime>
<!-- 00:00 -->
<static>
<duration>10795.0</duration>
<file>/home/thanh/Pictures/wallpapers/mojave-background/mojave_dynamic_15.jpeg</file>
</static>
<transition type="overlay">
<duration>5.0</duration>
<from>/home/thanh/Pictures/wallpapers/mojave-background/mojave_dynamic_15.jpeg</from>
<to>/home/thanh/Pictures/wallpapers/mojave-background/mojave_dynamic_16.jpeg</to>
</transition>
<!-- 03:00 -->
So questions are
- Do we want to implement ubuntu’s way of handling this? (personally dont like the way they did it)
- Do we want to expose transition time to gsettings?
- Can we implement both of the above
- Does anyone want to implement this or should I?
- Last one: Why set the wallpaper to black, why not the budgie grey color?