From 8e5bc4bbe64d1becdcfb15e0c994d76be44608cc Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Fri, 24 May 2024 13:10:53 -0700 Subject: [PATCH] Update .macos --- .macos | 115 +++++++++++++++++++-------------------------------------- 1 file changed, 39 insertions(+), 76 deletions(-) diff --git a/.macos b/.macos index 0bc3beb..d3d8942 100644 --- a/.macos +++ b/.macos @@ -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 PMPrintingExpandedStateForPrint2 -bool true - -# Disable Notification Center and remove the menu bar icon -launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null - -# Set a blazingly fast keyboard repeat rate +defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false +defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true +defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false +defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false +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 InitialKeyRepeat -int 10 - -# Require password immediately after sleep or screen saver begins -defaults write com.apple.screensaver askForPassword -int 1 -defaults write com.apple.screensaver askForPasswordDelay -int 0 - -# Disable shadow in screenshots +defaults write NSGlobalDomain InitialKeyRepeat -int 20 +defaults write com.apple.screencapture location -string "${HOME}/Desktop" +defaults write com.apple.screencapture type -string "png" defaults write com.apple.screencapture disable-shadow -bool true - -# Set Desktop as the default location for new Finder windows -# For other paths, use `PfLo` and `file:///full/path/here/` -defaults write com.apple.finder NewWindowTarget -string "PfDe" -defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/" - -# Keep folders on top when sorting by name -defaults write com.apple.finder _FXSortFoldersFirst -bool true - -# Avoid creating .DS_Store files on network or USB volumes +defaults write NSGlobalDomain AppleFontSmoothing -int 1 +defaults write com.apple.finder DisableAllAnimations -bool true +defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true +defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true +defaults write com.apple.finder ShowMountedServersOnDesktop -bool true +defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true +defaults write NSGlobalDomain AppleShowAllExtensions -bool true +defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true - -# Enable snap-to-grid for icons on the desktop and in other icon views -/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist -/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist -/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist - -# Increase grid spacing for icons on the desktop and in other icon views -/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist -/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist -/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:gridSpacing 100" ~/Library/Preferences/com.apple.finder.plist - -# Enable Safari’s debug menu -defaults write com.apple.Safari IncludeInternalDebugMenu -bool true - -# Enable the Develop menu and the Web Inspector in Safari -defaults write com.apple.Safari IncludeDevelopMenu -bool true -defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true -defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true - -# Check for software updates daily, not just once per week -defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1 - -# 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 +defaults write com.apple.dock tilesize -int 36 +defaults write com.apple.dock launchanim -bool false +defaults write com.apple.dock expose-animation-duration -float 0.1 +defaults write com.apple.dashboard mcx-disabled -bool true +defaults write com.apple.dock dashboard-in-overlay -bool true +defaults write com.apple.dock mru-spaces -bool false +defaults write com.apple.dock autohide-delay -float 0 +defaults write com.apple.dock autohide -bool true +defaults write com.apple.dock show-recents -bool false +defaults write com.apple.dock wvous-tl-corner -int 2 +defaults write com.apple.dock wvous-tr-corner -int 4 +defaults write com.apple.dock wvous-tr-modifier -int 0 +defaults write com.apple.dock wvous-tl-modifier -int 0 +defaults write com.apple.terminal StringEncodings -array 4 +defaults write com.apple.Terminal ShowLineMarks -int 0 +defaults write com.apple.ActivityMonitor OpenMainWindow -bool true +defaults write com.apple.ActivityMonitor IconType -int 5 +defaults write com.apple.ActivityMonitor ShowCategory -int 0 +defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true +sudo pmset -a displaysleep 15 +sudo pmset -c sleep 0 +sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool true