Last active
March 21, 2016 23:36
-
-
Save zoetrope69/8182d20ca56df6575ec7 to your computer and use it in GitHub Desktop.
dynamic wallpapers from unsplash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get latest pic, change your screen resolution in the url paths: https://unsplash.it/width/height?random | |
wget -O /tmp/wallpaper 'https://unsplash.it/1366/768?random' > /dev/null 2>&1 | |
# set it as desktop wallpaper | |
gsettings set org.gnome.desktop.background picture-uri /tmp/wallpaper # gnome ubuntu | |
# osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/tmp/wallpaper"' # osx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then you can add this as a cron job to have it run ever so often, e.g
* * * * * /path/to/wallpaper.sh