-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmacos-defaults.sh
61 lines (43 loc) · 2.12 KB
/
macos-defaults.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
# Keyboard setup
# -----------------------------
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 15
# Automatically illuminate built-in MacBook keyboard in low light
defaults write com.apple.BezelServices kDim -bool true
# Turn off keyboard illumination when computer is not used for 5 minutes
defaults write com.apple.BezelServices kDimTime -int 300
# Trackpad, mouse setup and bluetooth
# ------------------------------------
# Trackpad: swipe between pages with three fingers
defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1
# Increase sound quality for Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
# Screen
# ------------------------------------
# Save screenshots to ~/Screenshots folder
SCREENSHOT_FOLDER="${HOME}/Screenshots"
mkdir -p "${SCREENSHOT_FOLDER}"
defaults write com.apple.screencapture location -string "${SCREENSHOTS_FOLDER}"
# Dock
# ------------------------------------
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# No bouncing icons
defaults write com.apple.dock no-bouncing -bool true
# Don't show recently used applications in the Dock
defaults write com.Apple.Dock show-recents -bool false
# Activity Monitor
# ----------------------------------
# Show the main window when launching Activity Monitor
defaults write com.apple.ActivityMonitor OpenMainWindow -bool true
# Visualize CPU usage in the Activity Monitor Dock icon
defaults write com.apple.ActivityMonitor IconType -int 5
# Show all processes in Activity Monitor
defaults write com.apple.ActivityMonitor ShowCategory -int 0
# Sort Activity Monitor results by CPU usage
defaults write com.apple.ActivityMonitor SortColumn -string "CPUUsage"
defaults write com.apple.ActivityMonitor SortDirection -int 0