Skip to content

Instantly share code, notes, and snippets.

@bake
Created February 8, 2015 01:47
Show Gist options
  • Save bake/9aba4101a58184b9de73 to your computer and use it in GitHub Desktop.
Save bake/9aba4101a58184b9de73 to your computer and use it in GitHub Desktop.
1337walls@osx
function 1337wall
set -l path "$HOME/.1337walls/"
set -l image (curl -s 'http://1337walls.w8l.org/api/?rows=1080p&count=1&format=raw&client=de.bakerolls.osxcli')
wget -q $image -P $path
set -l image (basename $image)
osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"$path$image\""
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment