From 7604e11f26527b3322e66c51dbfc0da0d8e26d92 Mon Sep 17 00:00:00 2001 From: Alec Rust Date: Sun, 22 Sep 2024 14:59:01 +0100 Subject: [PATCH] Cut down macos.sh --- scripts/macos.sh | 46 +++++++++++----------------------------------- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/scripts/macos.sh b/scripts/macos.sh index 5f9575d..d2ed32a 100755 --- a/scripts/macos.sh +++ b/scripts/macos.sh @@ -33,6 +33,12 @@ defaults write NSGlobalDomain AppleMetricUnits -bool true mkdir -p "${HOME}/screenshots" defaults write com.apple.screencapture location -string "${HOME}/screenshots" +# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) +defaults write com.apple.screencapture type -string "png" + +# Disable shadow in screenshots +defaults write com.apple.screencapture disable-shadow -bool true + # Set a fast keyboard repeat rate defaults write NSGlobalDomain KeyRepeat -int 1 defaults write NSGlobalDomain InitialKeyRepeat -int 10 @@ -43,24 +49,17 @@ defaults write com.apple.finder AppleShowAllFiles -bool true # Show filename extensions in Finder defaults write NSGlobalDomain AppleShowAllExtensions -bool true +# Show external hard drives and removable media on the deskop, hide servers +defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true +defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true +defaults write com.apple.finder ShowMountedServersOnDesktop -bool false + # Automatically hide and show the Dock defaults write com.apple.dock autohide -bool true # Enable trackpad tap to click defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true -# Disable press-and-hold for keys in favor of key repeat -defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false - -# Set sidebar icon size to medium -defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 2 - -# Disable the over-the-top focus ring animation -defaults write NSGlobalDomain NSUseAnimatedFocusRing -bool false - -# Adjust toolbar title rollover delay -defaults write NSGlobalDomain NSToolbarTitleViewRolloverDelay -float 0 - # Expand save panel by default defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true @@ -75,9 +74,6 @@ defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false # Disable the “Are you sure you want to open this application?” dialog defaults write com.apple.LaunchServices LSQuarantine -bool false -# Set Help Viewer windows to non-floating mode -defaults write com.apple.helpviewer DevMode -bool true - # Disable automatic capitalization as it’s annoying when typing code defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false @@ -92,12 +88,6 @@ defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 defaults write com.apple.screensaver askForPassword -int 1 defaults write com.apple.screensaver askForPasswordDelay -int 0 -# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF) -defaults write com.apple.screencapture type -string "png" - -# Disable shadow in screenshots -defaults write com.apple.screencapture disable-shadow -bool true - # Enable subpixel font rendering on non-Apple LCDs # Reference: https://github.com/kevinSuttle/macOS-Defaults/issues/17#issuecomment-266633501 defaults write NSGlobalDomain AppleFontSmoothing -int 1 @@ -109,11 +99,6 @@ defaults write com.apple.finder DisableAllAnimations -bool true defaults write com.apple.finder NewWindowTarget -string "PfDe" defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/Desktop/" -# Show external hard drives and removable media on the deskop, hide servers -defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true -defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true -defaults write com.apple.finder ShowMountedServersOnDesktop -bool false - # Finder: show status bar defaults write com.apple.finder ShowStatusBar -bool true @@ -168,9 +153,6 @@ defaults write com.apple.finder FXInfoPanesExpanded -dict \ defaults write com.apple.Safari UniversalSearchEnabled -bool false defaults write com.apple.Safari SuppressSearchSuggestions -bool true -# Enable highlight hover effect for the grid view of a stack (Dock) -defaults write com.apple.dock mouse-over-hilite-stack -bool true - # Set the icon size of Dock items to 50 pixels defaults write com.apple.dock tilesize -int 50 @@ -189,12 +171,6 @@ defaults write com.apple.dock show-process-indicators -bool true # Don’t animate opening applications from the Dock defaults write com.apple.dock launchanim -bool false -# Speed up Mission Control animations -defaults write com.apple.dock expose-animation-duration -float 0.1 - -# Don’t group windows by application in Mission Control -defaults write com.apple.dock expose-group-by-app -bool false - # Disable Dashboard defaults write com.apple.dashboard mcx-disabled -bool true