Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating macOS defaults #349

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/images/debug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apk update && \
bash=5.2.15-r5 \
bind-tools=9.18.19-r0 \
bridge-utils=1.7.1-r2 \
busybox-extras=1.36.1-r4 \
busybox-extras=1.36.1-r5 \
conntrack-tools=1.4.7-r1 \
curl=8.4.0-r0 \
ethtool=6.2-r1 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ readonly domain='com.apple.SoftwareUpdate'
readonly commerce_domain='com.apple.commerce'


# Enable the automatic update check
# Automatically check for updates
defaults write ${domain} AutomaticCheckEnabled -bool true

# Check for software updates daily, not just once per week
# Check for software updates daily
defaults write ${domain} ScheduleFrequency -int 1

# Download newly available updates in background
defaults write ${domain} AutomaticDownload -int 1

# Turn on app auto-update
defaults write ${commerce_domain} AutoUpdate -bool true

# Install System data files & security updates
defaults write ${domain} CriticalUpdateInstall -int 1

# Automatically download apps purchased on other Macs
defaults write ${domain} ConfigDataInstall -int 1

# Turn on app auto-update
defaults write ${commerce_domain} AutoUpdate -bool true

# Allow the App Store to reboot machine on macOS updates
defaults write ${commerce_domain} AutoUpdateRestartRequired -bool true
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ if [ "$(scutil --get ComputerName)" != "${computer_name}" ]; then

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "${computer_name}"
fi

# Disable "Click Wallpaper To Show Desktop Items"
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/usr/bin/env bash

# Enable tap-to-click for this user and for the login screen
defaults -currentHost write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults -currentHost write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true

# Disable three finger drag
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false

defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false

# Enable "natural" (touchscreen-style) scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# Sets trackpad & mouse speed to a reasonable number
defaults read NSGlobalDomain com.apple.trackpad.scaling -float 4.0
defaults read NSGlobalDomain com.apple.mouse.scaling -float 4.0

# Enables force click and haptic feedback
defaults write NSGlobalDomain com.apple.trackpad.forceClick -bool true
defaults write com.apple.AppleMultitouchTrackpad ForceSuppressed -bool false
defaults write com.apple.AppleMultitouchTrackpad ActuateDetents -bool true
## 0: Light | 1: Medium | 2: Firm
defaults write com.apple.AppleMultitouchTrackpad FirstClickThreshold -int 0
defaults write com.apple.AppleMultitouchTrackpad SecondClickThreshold -int 0

# Enable tap-to-click for this user and for the login screen
defaults -currentHost write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults -currentHost write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true

# Disable three finger drag
defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Dragging -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool false