This is a extremly simple script that downloads an unsplash image and sets it as a wallpaper every 15 minutes. I was done with an extra menu item or an app, I just wanted random nice images as a wallpaper on my screen(s).
Let me know if you like it/are using it 🤩👌.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/davidvanleeuwen/unsplash-wallpaper-script/master/install.sh)"Don't have nodejs and/or yarn?
brew install yarnDon't have brew?
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"- Open your terminal
- Enter:
env EDITOR=nano crontab -e - Change
*/15(= every 15 minutes) to what you want (more info) ctrl+x,y,enter
- Open
~/Wallpapers/set_wallpaper.sh - Change nature to whatever you want (it can be comma seperated, eg:
unsplash-wallpaper -q unicorn,rainbow) - Save the file and you're done
- To begin, this is a bit more cumbersome. Sorry 😟
- Use
env EDITOR=nano crontab -eand delete the line points toset_wallpaper.sh. ctrl+x,y,enterrm -rf ~/Wallpapers(note: make sure you don't use this folder for anything else, everything inside will be deleted!)- That's it.
Let me know on Twitter!
