Skip to content

Instantly share code, notes, and snippets.

@pmbuko
Created October 18, 2013 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbuko/7045003 to your computer and use it in GitHub Desktop.
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/)
#!/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