-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx_settings.sh
executable file
·71 lines (54 loc) · 2.73 KB
/
osx_settings.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
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
# turn off foreign/accented keys on hold
defaults write -g ApplePressAndHoldEnabled -bool false
# make keys repeat faster
defaults write -g InitialKeyRepeat -int 11 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
# show some system info on login
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# show battery life
defaults write com.apple.menuextra.battery ShowTime -string "YES"
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# clock settings
defaults write com.apple.menuextra.clock DateFormat -string "EEE d MMM h:mm:ss a"
defaults write com.apple.menuextra.clock FlashDateSeparators -bool true
defaults write com.apple.menuextra.clock IsAnalog -bool false
# show hidden files in finder
defaults write com.apple.finder AppleShowAllFiles YES
# Map navigation swipe to 3 fingers (turn this off to get 4-finger navigation swipe)
defaults write com.apple.systempreferences com.apple.preference.trackpad.3fdrag-4fNavigate -bool false
# turn on hot corners
# Possible values:
# 0: no-op
# 2: Mission Control
# 3: Show application windows
# 4: Desktop
# 5: Start screen saver
# 6: Disable screen saver
# 7: Dashboard
# 10: Put display to sleep
# 11: Launchpad
# 12: Notification Center
# 13: Lock Screen
defaults write ~/Library/Preferences/com.apple.dock.plist wvous-tr-corner -integer 3
defaults write ~/Library/Preferences/com.apple.dock.plist wvous-bl-corner -integer 4
defaults write ~/Library/Preferences/com.apple.dock.plist wvous-br-corner -integer 2
defaults write ~/Library/Preferences/com.apple.dock.plist wvous-tl-corner -integer 11
# number of columns and rows in the dock springboard set to 16
defaults write com.apple.dock springboard-rows -int 16
defaults write com.apple.dock springboard-columns -int 16
# increase trackpad sensitivity
defaults write -g com.apple.trackpad.scaling -float 25.0
defaults write -g com.apple.mouse.scaling -float 8.0
# turn on right click
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode TwoButton
# tap click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 1
defaults write -g com.apple.mouse.tapBehavior -int 1
# speed up mission control animations
defaults write com.apple.dock expose-animation-duration -float 0.5
# supposedly improve bluetooth audio quality
# defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Dan Lee | Gauntlet Restaking"