How to change an xml wallpaper every day?
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
<span style="color:#323232;">wallpath=/usr/local/share/backgrounds/Dynamic_Wallpapers
</span><span style="color:#323232;">image=$(find $wallpath -name "*.xml" | grep -E xml | sort -R | tail -1)
</span><span style="color:#323232;">image="file:///$image"
</span><span style="color:#323232;">echo $image
</span><span style="color:#323232;">
</span><span style="color:#323232;">gsettings set org.gnome.desktop.background picture-uri "$image"
</span><span style="color:#323232;">gsettings set org.gnome.desktop.background picture-uri-dark "$image"
</span>
and crontab
<span style="color:#323232;">@daily ~/wallpaper_changer.sh
</span><span style="color:#323232;">@reboot ~/wallpaper_changer.sh
</span>
Add comment