Last active
March 30, 2017 10:03
-
-
Save bricejulia/db09050f5da104964409ea94feae4331 to your computer and use it in GitHub Desktop.
mac os wallpaper script
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
#!/usr/bin/env bash | |
name=$(date '+%y-%m-%d_%H:%M:%S') | |
wget -O /Users/bjulia/.background/tmp/$name.jpg 'https://unsplash.it/2500/1300?random' > /dev/null 2>&1 | |
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Users/bjulia/.background/tmp/'$name'.jpg"' | |
rm -f ./tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment