This program will cycle through a list of images, set them as the desktop wallpaper and set your iterm2 color scheme to match the wallpaper. It only works on macOS. The flow is as follows:
- Select a random image from a specified directory (default: $HOME/Pictures/Wallpapers)
- Create a iterm colorscheme from that image (using pywal)
- Set the desktop wallpaper to that image
- Set the iterm colorscheme to the colorscheme created in step 2
- Wait for the given interval
- Repeat steps 1-5 until all images in the directory have been used
Install pywal (Use this fork: https://github.com/robwaz/pywal, the orignal one might be buggy for Mac OS)
git clone https://github.com/robwaz/pywal
cd pywal
sudo pip3 install -e ./
Install coreutils (for the shuf command)
brew install coreutils
git clone https://github.com/neysanfoo/wallpaper-changer.git
cd wallpaper-changer
chmod +x run.sh
chmod +x wallpaper.sh
./run.sh
Set the path to the directory containing the images in ./wallpaper.sh
.
By deafult, the path is set to $HOME/Pictures/Wallpapers
.
export wallpaper_path=$HOME/Pictures/Wallpapers
You can change the interval in ./wallpaper.sh
. The default is 60 minutes.
Add the following line to your .zshrc file to set the colorscheme on startup.
cat $HOME/.cache/wal/sequences