This method uses a
- shell script to update the relvant
gsettings
- Systemd service to run the script
- Systemd timer to periodically run the script
Copy change-wallpaper.sh
& update the WALLPAPERS
variable to point to your wallpapers.
Ensure that the script is executable by running chmod +x change-wallpaper.sh
Copy change-wallpaper.service
and change-wallpaper.timer
to ~/.config/systemd/user
.
Ensure that the ExecStart
in ~/.config/systemd/user/change-wallpaper.service
points to change-wallpaper.sh
Try it out with systemctl --user start change-wallpaper
Enable the systemd units with:
systemctl --user enable change-wallpaper.timer