ofc you may schedule it with cron but following script I wrote won’t change anything. The setting is set but nothing changes. I’m on Fedora Silverblue
edit:
solution
wallpath=/usr/local/share/backgrounds/Dynamic_Wallpapers
image=$(find $wallpath -name "*.xml" | grep -E xml | sort -R | tail -1)
image="file:///$image"
echo $image
gsettings set org.gnome.desktop.background picture-uri "$image"
gsettings set org.gnome.desktop.background picture-uri-dark "$image"
and crontab
@daily ~/wallpaper_changer.sh
@reboot ~/wallpaper_changer.sh
You must log in or # to comment.
I use a while true approach with sleep 24h or whatever. Doesn’t seem to impact my CPU usage, but I guess the crontab approach is more Unix-like.
Are ypu dead set on using xml or did you want to try a Wallpaper app like Variety?
Dynamic wallpapers are cool
This might work.