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
  • selokichtli@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    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.