Created
July 30, 2014 14:40
-
-
Save memoryleak/29dcb121d5d4b45d0987 to your computer and use it in GitHub Desktop.
This file contains 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 | |
TODAY="*$(date +%A)*" | |
WORKDAYS="Monday Tuesday Wednesday Thursday Friday" | |
SCREENSHOT_PATH="$HOME/Pictures/Screenshots/$(date +%Y)/$(date +%B)/$(date +%A)" | |
if [[ ! -d $SCREENSHOT_PATH ]] | |
then | |
mkdir -p $SCREENSHOT_PATH | |
fi | |
if [[ $WORKDAYS == $TODAY ]] | |
then | |
screencapture -t jpg "$SCREENSHOT_PATH/primary-$(date +%Y-%m-%d_%H-%I).jpg" "$SCREENSHOT_PATH/secondary-$(date +%Y-%m-%d_%H-%I).jpg" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment