defaults-write icon indicating copy to clipboard operation
defaults-write copied to clipboard

:apple: :art: Make your mac better.

English · 简体中文

defaults-write

Make your mac better.

You Don’t Have to Know Everything. You Just Have to Know Where to Find It. —— Albert Einstein

Table of Contents

  • Add Blank Spaces to Left Side of the Dock to Better Organize App(where the Applications Are)
  • Add Narrow Spaces to Left Side of the Dock to Better Organize Apps(where the Applications Are)
  • Add Blank Spaces to Right Side of the Dock to Better Organize App(where the Trash is)
  • Add Narrow Spaces to Right Side of the Dock to Better Organize Apps(where the Trash is)
  • Remove the Auto-Hide Dock Delay
  • Speed Up Mission Control Animations
  • Return to Default Mission Control Animation Speeds
  • Make Hidden App Icons Translucent in the Dock
  • Stop Full Names from Copying with Email Addresses in OS X Mail
  • Enable Text Selection in Quick Look Windows
  • Disable the “Are you sure you want to open this application?” dialog
  • Show indicator lights for open applications in the Dock
  • Enable the status bar in Finder
  • Empty Trash securely by default
  • Always show expanded save dialogs
  • Define where to save screenshots
  • Reduce Transparency in Menu and Windows
  • Show Debug Menu
  • Hide Desktop Icon
  • Always Show Hidden Files in the Finder
  • Change the Rows of Launchpad
  • Change the Columns of Launchpad
  • Reset Layout of Launchpad
  • Show Path Bar in Finder
  • Set Current Folder as Default Search Scope
  • Reverse Dark Mode to Menubar and Dock Only

Add Blank Spaces to Left Side of the Dock to Better Organize App(where the Applications Are)

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock

⬆️ Back to top

Add Narrow Spaces to Left Side of the Dock to Better Organize Apps(where the Applications Are)

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="small-spacer-tile";}' && killall Dock

⬆️ Back to top

Add Blank Spaces to Right Side of the Dock to Better Organize App(where the Trash is)

defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall Dock

⬆️ Back to top

Add Narrow Spaces to Right Side of the Dock to Better Organize Apps(where the Trash is)

defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="small-spacer-tile";}' && killall Dock

⬆️ Back to top

Remove the Auto-Hide Dock Delay

defaults write com.apple.Dock autohide-delay -float 0 && killall Dock

⬆️ Back to top

Speed Up Mission Control Animations

// you can adjust the animation speeds by changing the number after the -float flag。
defaults write com.apple.dock expose-animation-duration -float 0.15 && killall Dock

⬆️ Back to top

Return to Default Mission Control Animation Speeds

defaults delete com.apple.dock expose-animation-duration && killall Dock

⬆️ Back to top

Make Hidden App Icons Translucent in the Dock

defaults write com.apple.dock showhidden -bool YES && killall Dock

⬆️ Back to top

Stop Full Names from Copying with Email Addresses in OS X Mail

defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false

⬆️ Back to top

Enable Text Selection in Quick Look Windows

defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder

⬆️ Back to top

Disable the “Are you sure you want to open this application?” dialog

defaults write com.apple.LaunchServices LSQuarantine -bool false

⬆️ Back to top

Show indicator lights for open applications in the Dock

defaults write com.apple.dock show-process-indicators -bool true && killall Dock

⬆️ Back to top

Enable the status bar in Finder

defaults write com.apple.finder ShowStatusBar -bool true && killall Finder

⬆️ Back to top

Empty Trash securely by default

defaults write com.apple.finder EmptyTrashSecurely -bool true && killall Finder

⬆️ Back to top

Always show expanded save dialogs

defaults write -g NSNavPanelExpandedStateForSaveMode -bool true && killall Finder

⬆️ Back to top

Define where to save screenshots

defaults write com.apple.screencapture location -string "$HOME/Desktop"

⬆️ Back to top

Reduce Transparency in Menu and Windows

defaults write com.apple.universalaccess reduceTransparency -bool true

⬆️ Back to top

Show Debug Menu

defaults write com.apple.appstore ShowDebugMenu -bool true

⬆️ Back to top

Hide Desktop Icon

defaults write com.apple.finder CreateDesktop -bool false && killall Finder

⬆️ Back to top

Always Show Hidden Files in the Finder

defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder

⬆️ Back to top

Change the Rows of Launchpad

defaults write com.apple.dock springboard-rows -int 6 && killall Dock

⬆️ Back to top

Change the Columns of Launchpad

defaults write com.apple.dock springboard-columns -int 8 && killall Dock

⬆️ Back to top

Reset Layout of Launchpad

defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock

⬆️ Back to top

Show Path Bar in Finder

defaults write com.apple.finder ShowPathbar -bool true && killall Finder

⬆️ Back to top

Set Current Folder as Default Search Scope

defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" && killall Finder

⬆️ Back to top

Reverse Dark Mode to Menubar and Dock Only

defaults write -g NSRequiresAquaSystemAppearance -bool Yes

⬆️ Back to top