Skip to content

Instantly share code, notes, and snippets.

@diego898
Last active January 11, 2021 20:05
Show Gist options
  • Save diego898/7fb2735284feb8eaf03c4454bc699a58 to your computer and use it in GitHub Desktop.
Save diego898/7fb2735284feb8eaf03c4454bc699a58 to your computer and use it in GitHub Desktop.
Changes to macos defaults:
# Most of this was selectively copied/edited from: https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Increase sound quality for Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
# Allowing text selection in Quick Look/Preview in Finder by default
defaults write com.apple.finder QLEnableTextSelection -bool true
# Finder: Make Fidner Quitable - Once that's done, you can quit it from the menu or hit CMD-Q, and it stays dead.
# If you do an ungraceful quit from the force quit menu or by sending it a signal, it'll still relaunch.
defaults write com.apple.finder QuitMenuItem -bool YES
# Finder: show hidden files by default
#defaults write com.apple.finder AppleShowAllFiles -bool true
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Finder: show status bar
#defaults write com.apple.finder ShowStatusBar -bool true
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -bool true
# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Keep folders on top when sorting by name
defaults write com.apple.finder _FXSortFoldersFirst -bool true
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Avoid creating .DS_Store files on network or USB volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Automatically open a new Finder window when a volume is mounted
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
# Use list view in all Finder windows by default
# Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Expand the print dialog by default
defaults write com.google.Chrome PMPrintingExpandedStateForPrint2 -bool true
defaults write com.google.Chrome.canary PMPrintingExpandedStateForPrint2 -bool true
# Disable Open/Close Window Animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Disable Window Size Adjustment Animations
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
##### DOCK
# Lock the size of the DOCK - NOTE - run **after** you've set it - this is to prevent accidently changing it.
# defaults write com.apple.Dock size-immutable -bool yes; killall Dock
# Add a movable transparent spacer after the persistent-apps in the dock
# defaults write com.apple.dock persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }'; killall Dock
# Clicking one app in your dock will hide all of the others.
# defaults write com.apple.dock single-app -bool TRUE; killall Dock
# Make hidden apps (cmd+h) have semi-transparent icons in the dock
defaults write com.apple.dock showhidden -bool TRUE; killall Dock
# Rest the doc to the default state - undo any of the above
# defaults delete com.apple.dock; killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment