This repository is a set of scripts and tools designed to automatically get and set daily Bing background images as wallpapers on macOS-based computers. The repository includes scripts that automatically download the Bing Image of the Day and set it as wallpaper, as well as tools for scheduling tasks and customizing scripts settings. In addition, the repository also contains detailed documentation to help users configure and use the scripts effectively. Overall, the goal of the repository is to provide an easy-to-use and automated solution for those who want to enjoy Bing's stunning images as their wallpapers on macOS.
- Clone the repository
git clone https://github.com/rdomenzain/dynamic-wallpaper.git
- Add execute permissions to the scripts
chmod +x task.sh
-
Give Full Disk Access to cron
- Go to
System Preferences
>Privacy & Security
>Full Disk Access
- Click on the
(+)
icon to add an item to the list - Press
command+shift+G
, type/usr/sbin/cron
and clickGo
- Select the
cron
file and clickOpen
- Go to
-
Execute install.sh
Arguments:
Use -n
to enable notifications
# With notifications
$ sh ./install.sh -n
# Without notifications
$ sh ./install.sh
Currently, the script is set to change the wallpaper every hour. To change this, edit the file install.sh
and change the value of * */1 * * *
.
Please refer to crontab.guru for more information.
To check if the crontab was installed correctly, execute the following command:
$ crontab -l
Expected output:
* */1 * * * /Users/YOURUSER/Documents/dynamic-wallpaper/task.sh -n >> /dev/null 2>&1
- Execute uninstall.sh
$ sh ./uninstall.sh
See LICENSE for more information.