adi1090x / dynamic-wallpaper

A simple bash script to set wallpapers according to current time, using cron job scheduler.
GNU General Public License v3.0
1.9k stars 114 forks source link

Change wallpapers every 15 minutes #77

Closed AshutoshFreak closed 1 year ago

AshutoshFreak commented 3 years ago

I have a set of 96 wallpapers (numbered from 0-95) taken from here. How do I change my wallpaper every 15 minutes?

andremeireles commented 3 years ago

On file dwall.sh, line 19, change HOUR='date +%k'. The expression needs to be something like ((hour * 60) + minutes) / 15) HOUR is date +%k MINUTES is date +%M Make sure the result is a integer and not a float number.

Your crontab needs to be */15 * * * *

adi1090x commented 1 year ago

Seems like solved, modify the script accordingly.