Update .macos

This commit is contained in:
Devin Haska 2024-05-24 13:10:53 -07:00 committed by GitHub
parent 7cbe24d8bb
commit 8e5bc4bbe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

115
.macos
View file

@ -1,82 +1,45 @@
# Autohide dock
defaults write com.apple.dock autohide -bool true
# Dock icon sizes
defaults write com.apple.dock tilesize -int 64
# Disable dock resize
defaults write com.apple.Dock size-immutable -bool yes
# Remove default apps from dock
defaults delete com.apple.dock persistent-apps
defaults delete com.apple.dock persistent-others
defaults write com.apple.dock show-recents -bool false
# Always expand Save dialogs
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Always expand Print dialogs
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Disable Notification Center and remove the menu bar icon defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# Set a blazingly fast keyboard repeat rate defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
defaults write NSGlobalDomain KeyRepeat -int 1 defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 10 defaults write NSGlobalDomain InitialKeyRepeat -int 20
defaults write com.apple.screencapture location -string "${HOME}/Desktop"
# Require password immediately after sleep or screen saver begins defaults write com.apple.screencapture type -string "png"
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Disable shadow in screenshots
defaults write com.apple.screencapture disable-shadow -bool true defaults write com.apple.screencapture disable-shadow -bool true
defaults write NSGlobalDomain AppleFontSmoothing -int 1
# Set Desktop as the default location for new Finder windows defaults write com.apple.finder DisableAllAnimations -bool true
# For other paths, use `PfLo` and `file:///full/path/here/` defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder NewWindowTarget -string "PfDe" defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/" defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# Keep folders on top when sorting by name defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder _FXSortFoldersFirst -bool true 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 DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
defaults write com.apple.dock tilesize -int 36
# Enable snap-to-grid for icons on the desktop and in other icon views defaults write com.apple.dock launchanim -bool false
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dock expose-animation-duration -float 0.1
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dashboard mcx-disabled -bool true
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dock dashboard-in-overlay -bool true
defaults write com.apple.dock mru-spaces -bool false
# Increase grid spacing for icons on the desktop and in other icon views defaults write com.apple.dock autohide-delay -float 0
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dock autohide -bool true
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dock show-recents -bool false
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist defaults write com.apple.dock wvous-tl-corner -int 2
defaults write com.apple.dock wvous-tr-corner -int 4
# Enable Safaris debug menu defaults write com.apple.dock wvous-tr-modifier -int 0
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true defaults write com.apple.dock wvous-tl-modifier -int 0
defaults write com.apple.terminal StringEncodings -array 4
# Enable the Develop menu and the Web Inspector in Safari defaults write com.apple.Terminal ShowLineMarks -int 0
defaults write com.apple.Safari IncludeDevelopMenu -bool true defaults write com.apple.ActivityMonitor OpenMainWindow -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true defaults write com.apple.ActivityMonitor IconType -int 5
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true defaults write com.apple.ActivityMonitor ShowCategory -int 0
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
# Check for software updates daily, not just once per week sudo pmset -a displaysleep 15
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 sudo pmset -c sleep 0
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true
# Disable the all too sensitive backswipe on trackpads
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -bool false
# Use the system-native print preview dialog
defaults write com.google.Chrome DisablePrintPreview -bool true
defaults write com.google.Chrome.canary DisablePrintPreview -bool true
# Expand the print dialog by default
defaults write com.google.Chrome PMPrintingExpandedStateForPrint2 -bool true
defaults write com.google.Chrome.canary PMPrintingExpandedStateForPrint2 -bool true
# Disable smart zoom Settings > Trackpad > Uncheck Smart Zoom