Created
February 8, 2015 01:47
-
-
Save bake/9aba4101a58184b9de73 to your computer and use it in GitHub Desktop.
1337walls@osx
This file contains hidden or 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
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