@@ -48,6 +48,11 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
4848 # sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool YES
4949
5050 # ***** Settings > General > Date & Time *****
51+ # Set time and date automatically: on
52+ sudo systemsetup -setusingnetworktime off
53+ sudo systemsetup -setusingnetworktime on
54+ # Source
55+ sudo systemsetup -setnetworktimeserver time.apple.com
5156 # 24-hour time: on
5257 defaults write .GlobalPreferences AppleICUForce24HourTime -int 1
5358
@@ -94,9 +99,10 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
9499 # ***** Settings > Displays *****
95100 # Enable subpixel font rendering on non-Apple LCDs
96101 defaults write NSGlobalDomain AppleFontSmoothing -int 1
97- # TODO: Automatically adjust brightness off
98- # TODO: True Tone off
99- # TODO: Night Shift... schedule: sunset to sunrise
102+ # Automatically adjust brightness: off
103+ sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor " Automatic Display Enabled" -int 0
104+ # TODO: True Tone: off (set manually; stored under user-specific UUID in com.apple.CoreBrightness)
105+ # TODO: Night Shift schedule: sunset to sunrise (set manually; stored under user-specific UUID in com.apple.CoreBrightness)
100106
101107 # ***** Settings > Spotlight *****
102108 # Disable Spotlight indexing on external volumes
@@ -126,20 +132,20 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
126132 defaults write .GlobalPreferences com.apple.sound.beep.feedback -bool true
127133
128134 # ***** Settings > Focus *****
129- # TODO: remove DND schedules / disable DND
135+ # TODO: Focus schedules & Do Not Disturb: disable (set manually; Focus profiles have complex per-user state)
130136
131137 # ***** Settings > Screen Time *****
132138
133139 # ***** Settings > Lock Screen *****
134- # defaults -currentHost write com.apple.screensaver idleTime -int 1800
135- # defaults write com.apple.screensaver askForPasswordDelay -int 0
136- # Start screen saver when inactive for X seconds
137- defaults -currentHost write com.apple.screensaver idleTime -int 300
138- # Turn display off on battery when inctive for X minutes
140+ # Turn display off on battery when inctive: for 10 minutes
139141 sudo pmset -b displaysleep 10
140- # Turn display off on power adapter when inctive for X minutes
142+ # Turn display off on power adapter when inctive: for 10 minutes
141143 sudo pmset -c displaysleep 10
142- # TODO: Require password after screen saver begins or display is turned off: 1min
144+ # Start screen saver when inactive for X seconds
145+ defaults -currentHost write com.apple.screensaver idleTime -int 300
146+ # Require password after screen saver begins or display is turned off: 1 minute
147+ defaults write com.apple.screensaver askForPassword -int 1
148+ defaults write com.apple.screensaver askForPasswordDelay -int 60
143149 killall " System Settings" || true
144150
145151 # ***** Settings > Privacy & Security *****
@@ -166,7 +172,7 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
166172 defaults write .GlobalPreferences NSAutomaticPeriodSubstitutionEnabled -bool false
167173 # Turn off text replacements (requires restart?)
168174 defaults write .GlobalPreferences WebAutomaticTextReplacementEnabled -bool false
169- # TODO: keyboard brightness
175+ # TODO: Keyboard brightness (set manually; hardware-controlled; no defaults equivalent)
170176 # macOS Sonoma v14 "redesigned insertion point"
171177 sudo defaults write /Library/Preferences/FeatureFlags/Domain/UIKit.plist redesigned_text_cursor -dict-add Enabled -bool YES
172178
0 commit comments