Skip to content

Instantly share code, notes, and snippets.

@zoetrope69
Last active March 21, 2016 23:36
Show Gist options
  • Save zoetrope69/8182d20ca56df6575ec7 to your computer and use it in GitHub Desktop.
Save zoetrope69/8182d20ca56df6575ec7 to your computer and use it in GitHub Desktop.
dynamic wallpapers from unsplash
# 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
@zoetrope69
Copy link
Author

Then you can add this as a cron job to have it run ever so often, e.g * * * * * /path/to/wallpaper.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment