From b8894d4fb342f545596c718b80bf38bf5e2b06e3 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 21 Jun 2024 11:36:20 +0100 Subject: [PATCH] feat: add macos config --- script/install.d/97-macos.sh | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 script/install.d/97-macos.sh diff --git a/script/install.d/97-macos.sh b/script/install.d/97-macos.sh new file mode 100644 index 0000000..4e65a27 --- /dev/null +++ b/script/install.d/97-macos.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Configure defaults +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + # Keyboard + # -------- + # off -- Keyboard: Capitalize words automatically + defaults write -globalDomain NSAutomaticCapitalizationEnabled -bool false + + # off -- Keyboard: Add period with double-space + defaults write -globalDomain NSAutomaticPeriodSubstitutionEnabled -bool false + + # off -- Keyboard: Quote substitution + defaults write -globalDomain NSAutomaticQuoteSubstitutionEnabled -bool false + + # off -- Keyboard: Dash substitution + defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false + + # Appearance + # ---------- + # Multicolour -- Appearance + defaults write -globalDomain AppleAquaColorVariant -int 0 + + # on -- Appearance: Dark mode + defaults write -globalDomain AppleInterfaceStyle -string "Dark" + + # #2CB494 -- Highlight color + defaults write -globalDomain AppleHighlightColor -string "0.172549 0.705882 0.580392" + + # Control Center + # -------------- + # off -- Control Center: Show Bluetooth + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + Bluetooth \ + -int 24 + + # off -- Control Center: Show Wi-Fi + defaults write \ + ~/Library/Preferences/ByHost/com.apple.controlcenter.plist \ + WiFi \ + -int 24 + + # Finder + # ------ + # on -- Finder: Add quit option + defaults write com.apple.finder QuitMenuItem -bool false +fi