From fbe3f1c029d52501aa0a74fd9555dbdeb5134eff Mon Sep 17 00:00:00 2001 From: James Spencer Date: Sun, 1 Oct 2023 20:20:42 +0100 Subject: [PATCH] feat: macOS defaults --- install.sh | 3 +++ scripts/set-mac-defaults.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 scripts/set-mac-defaults.sh diff --git a/install.sh b/install.sh index 1c5caa3..2a66a4a 100755 --- a/install.sh +++ b/install.sh @@ -31,3 +31,6 @@ echo echo "Done linking dotfiles." # End Symlinks + +# Set up macOS defaults +./scripts/set-mac-defaults.sh diff --git a/scripts/set-mac-defaults.sh b/scripts/set-mac-defaults.sh new file mode 100755 index 0000000..6861266 --- /dev/null +++ b/scripts/set-mac-defaults.sh @@ -0,0 +1,32 @@ +echo "Setting macOS defaults..." +echo + +# Always open everything in Finder's list view +defaults write com.apple.Finder FXPreferredViewStyle Nlsv + +# Show the ~/Library folder +chflags nohidden ~/Library + +# Set highlight color to pink +defaults write NSGlobalDomain AppleHighlightColor -string "1.000000 0.749020 0.823529" + +# Set dark mode +defaults write NSGlobalDomain AppleInterfaceStyle Dark + +# Set sidebar icon size to medium +defaults write com.apple.dock tilesize -int 64 + +# Autohide dock +defaults write com.apple.dock autohide -bool true + +# Delete all apps from dock, so we can add our own +defaults write com.apple.dock persistent-apps -array + +# Save screenshots to the desktop +defaults write com.apple.screencapture location -string "${HOME}/Documents/Screenshots" + +# Don’t display the annoying prompt when quitting iTerm +defaults write com.googlecode.iterm2 PromptOnQuit -bool false + +echo "Finished setting macOS defaults." +echo