Skip to content

Instantly share code, notes, and snippets.

@pkqk
Last active October 28, 2015 14:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkqk/6986dc59b592bff2e3cb to your computer and use it in GitHub Desktop.
Save pkqk/6986dc59b592bff2e3cb to your computer and use it in GitHub Desktop.
urls=$(curl -s "http://manifoldgarden.tumblr.com/rss" | grep -o 'http://imgur.com/[^"&]\+' | uniq | sed -e 's/imgur/i.imgur/' -e 's/$/.png/')
for url in ${urls}
do
filename=$(basename $url)
if [ ! -e "${filename}" ]
then
curl -s -O "${url}"
fi
done

Fetch wallpapers from Manifold Garden

Because pretty

http://manifoldgarden.tumblr.com/

Setup for OSX

Make a folder like ~/Pictures/manifoldgarden and put check.sh in it. Run it to fetch some images with:

bash check.sh

Then go to System Preferences -> Desktop & Screensaver, add the folder to use as your wallpaper and set it to change every now and then.

To make it update automatically with new ones

open Terminal and run:

crontab -e

you'll want to add this line:

0 * * * * cd $HOME/Pictures/manifoldgarden && bash check.sh

If you don't know how to use the editor (vi) you can do this by pressing i, pasting in the line, pressing ESC and typing :wq

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