So assuming you’re not using a DE and don’t wanna install a tool which comes with a lot of dependencies just to automate the boring stuf of changing wallpapers (root window of Xorg). I wrote a simple Python program which you can use as systemd unit too.
Clone the repository or download/copy the beautify.py if you don’t want systemd part. I’d recommend ~/bin for such executable scripts. You can execute it from .xinitrc or .xprofile. For systemd there is explaination in repository readme file too.
git clone https://github.com/Awan/beautify.git cp beautify/beautify.py ~/bin/beautify cp beautify/systemd/beautify.service ~/.config/systemd/user/default.target.wants/ systemctl enable --user beautify.service systemctl start --user beautify.service
Don’t forget to edit the beautify.service. Add path to beautify script where you copied it, and also add your wallpapers collection’s path and duration.
If you wanna execute it without systemd, you can copy the beautify.py to ~/bin and execute it from ~/.xinitrc or ~/.xprofile like this.
cat ~/.xinitrc ... ~/bin/beautify ~/pix/wallpapers 300 ...
It will change the wallpapers from ~/pix/wallpapers every 5 minutes. Enjoy!