Created
October 18, 2013 17:32
-
-
Save pmbuko/7045003 to your computer and use it in GitHub Desktop.
Turns on/off window shadows in OS X screenshots. (http://yourmacguy.wordpress.com/2008/07/29/screenshot-shadows/)
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 | |
usage () { | |
/bin/echo "Usage: shotshadows [off|on]" | |
exit 1 | |
} | |
if [ $# == 1 ]; then | |
if [ $1 == "off" ]; then | |
/bin/echo "Disabling drop shadows in screenshots and restarting SystemUIServer" | |
/usr/bin/defaults write com.apple.screencapture disable-shadow -bool true | |
/usr/bin/killall SystemUIServer | |
elif [ $1 == "on" ]; then | |
/bin/echo "Enabling drop shadows in screenshots and restarting SystemUIServer" | |
/usr/bin/defaults delete com.apple.screencapture disable-shadow | |
/usr/bin/killall SystemUIServer | |
else | |
usage | |
fi | |
else | |
usage | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment