Created
December 11, 2015 13:39
-
-
Save brettbuddin/b016036edbcc42850acf to your computer and use it in GitHub Desktop.
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
#!/bin/bash -eu | |
WALLCAT_PATH=${WALLCAT_PATH:-$HOME/Pictures/Wallcat} | |
CURRENT_IMAGE=$(osascript -e 'tell app "finder" to get posix path of (get desktop picture as alias)') | |
CURRENT_IMAGE_FILENAME=$(basename $CURRENT_IMAGE) | |
mkdir -p $WALLCAT_PATH | |
cp $CURRENT_IMAGE $WALLCAT_PATH/$CURRENT_IMAGE_FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment