How to disable the drop-shadow in Mac OS X window screenshots?

Written by  Friday, 12 January 2018 12:00

Here’s the command. Just paste this line into your Terminal, and press return.

defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer

To test out your new screenshot settings, just take a quick screenshot by pressing the key combination command-shift-4, followed by the spacebar. You should end up with a beautifully clean window screenshot, free of drop shadows. The best part about this is that your screenshot’s dimensions will now finally match the window’s dimensions, without all that added padding introduced by the drop shadow. Nice, huh?

If you no longer want these cleaned up windows, you can switch back to the normal shadowed screenshots by pasting the following into your Terminal:

defaults write com.apple.screencapture disable-shadow -bool false
killall SystemUIServer

Well done!

220 Read Last modified on Friday, 12 January 2018

Related items

  • Launch Sublime Text 3 from the command line & simlink to Subl
    in Mac

    These instructions assume you’re using the Terminal app out of the box, without ZSH or any fancy prompts like that. I trust you will be able to adapt these instructions yourself if you do.

    Step 1 : Create a symlink called sublime

    sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

    Step 2 : Check that your system profile can find the symlink you just created.

    open ~/.bash_profile

    Step 3 : Add both these lines & then save the file :

    alias subl="open -a /Applications/Sublime\ Text.app"
    
    export PATH=/usr/local/bin:$PATH

    Step 4 : Reload your bash_profile :

    source ~/.bash_profile

    Done ! You can now navigate to any of your code/script folders in Terminal and open them in Sublime with the following commands :

    subl .
    subl .zshrc
  • How to Stop .DS_Store File Creation on Network Volumes in Mac OS X
    in Mac

    To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

    defaults write com.apple.desktopservices DSDontWriteNetworkStores true

    Reboot the Mac for changes to take full effect.

  • Customize OS X's Login Screen with Any Logo You Want
    in Mac

    The login screen on your Mac is perfectly functional as it is, but if you want to spice it up a little bit, blogger Jacob Salmela shows you how to customize the login screen with a logo of your choosing.

    If you don't want to install a whole program just for a simple tweak it's easy to do manually. All you need is a PNG that's 428 X 248. Then, you'll need to save it as four different files.

    Here's instructions:

    You need four copies of this file, and they need to be named:

    • apple.png
    • apple@2x.png
    • apple_s1.png
    • apple_s1@2x.png

    Once they are named correctly, just drag them into the following path:

    /System/Library/PrivateFrameworks/LoginUIKit.framework/Versions/A/Frameworks/LoginUICore.framework/Resources/

    and then choose to replace all of them.

    That's it, log out, and you should see your new logo. Head over to Salmela's site for a few sample images and instructions for making your own.

  • Git: Fix warning: unable to access '/.config/git/ignore': Permission denied
    in Mac

    After I check the folder, I just know that the folder owned by “root” user.

    ls -lah
    sudo chown whoami .config

     

  • How to Stop DS_Store File Creation on Network Volumes in Mac OS X
    in Mac

    To disable the creation of .ds_store files, launch the Terminal application from /Applications/Utilities/ and enter the following command string exactly:

    defaults write com.apple.desktopservices DSDontWriteNetworkStores true