Mac Tips

Remove dock reveal animation

defaults write autohide-time-modifier -int 0 && killall Dock

# Revert changes
defaults delete autohide-time-modifier && killall Dock

Remove dock reveal delay

defaults write autohide-delay -int 0 && killall Dock

# Revert changes
defaults delete autohide-delay && killall Dock

Change screenshot filename

# Changing the name to 'screenshot'
defaults write name "screenshot"

# Reverting back to 'Screen Shot'
defaults write name "Screen Shot"

Change the screenshot file format

# You can replace 'jpg' with png, tiff, gif or pdf
defaults write type jpg

# Reverting back to png
defaults write type png

Change directory where screenshots are saved to

# Replace '~/Screenshots' with your directory
defaults write location ~/Screenshots

# Reverting back to '~/Desktop' directory
defaults write location ~/Desktop

Remove the shadow when taking a window screenshot

defaults write disable-shadow -bool true && killall SystemUIServer

# Reverting changes
defaults write disable-shadow -bool false && killall SystemUIServer

Disable popup showing accented characters when holding down a key

# You will need to restart the program in which you are typing for the command to take effect
defaults write -g ApplePressAndHoldEnabled -bool false
# Revert changes
defaults write -g ApplePressAndHoldEnabled -bool true

Hide QuickLook when changing programs

defaults write QLHidePanelOnDeactivate -bool yes && killall Finder

# Revert changes
defaults delete QLHidePanelOnDeactivate && killall Finder

Change Mac App Store update check frequency

# Change 1 to any number of days
defaults write ScheduleFrequency -int 1

# Reverting back to 7
defaults write ScheduleFrequency -int 7

Here you can download two scripts for macOS. The “” script is for applying all the changes mentioned above and the “” script is for reverting all those changes. Use at your own risk.