Settings in macOS🔗
Open macOS settings:
open x-apple.systempreferences:com.apple.preference.general
To find the settings you can use the GUI and compare the output of defaults
read <domain> before and after the change.
General Settings🔗
FileVault🔗
Enable FileVault for encrypting the SSD in the laptop. Open the settings:
open x-apple.systempreferences:com.apple.preference.security?FileVault
In order to store the recovery key do this setting via the GUI.
Software Updates🔗
Open software updates:
open x-apple.systempreferences:com.apple.preferences.softwareupdate
-
Enable automatic install of updates
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist "AutomaticDownload" -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist "AutomaticallyInstallMacOSUpdates" -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist "ConfigDataInstall" -bool true sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist "CriticalUpdateInstall" -bool trueImportant: The properties are not visible via direct path
com.apple.softwareupdate.
Trackpad🔗
Open trackpad settings:
open x-apple.systempreferences:com.apple.Trackpad-Settings
- Enable tap to click TODO
-
Disable natural scrolling
Dock🔗
Open Dock settings:
open x-apple.systempreferences:com.apple.preference.dock
-
Auto hide the Dock
-
Do not display recent apps in the Dock
-
Disable launch animations and minimize effect
-
Set Dock size and disable magnification
-
Minimize windows into application icon
-
Group applications in mission control
Finally restart the Dock: killall Dock
Desktop & Stage Manager🔗
Open desktop settings (part of Dock settings):
open x-apple.systempreferences:com.apple.preference.dock
-
Disable reveal desktop on click
-
Hide files on desktop and stage manager
-
Do not show recent apps in stage manager
-
Disable widgets on desktop and stage manager
macOS Applications🔗
Finder🔗
Open Finder setting
osascript \
-e 'tell application "Finder" to activate' \
-e 'tell application "System Events" to keystroke "," using command down'
-
Set home directory a default start directory
-
Open new folder in new tab
-
Do not show drives and servers
-
Do not show a warning when changing file extensions
-
Set default search scope to current folder
-
Remove old files (older than 30 days) from trash
-
Show path and status bar
Screenshots🔗
-
Change location for screenshots
You must also create the directory.