-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup-macos.sh
executable file
·182 lines (120 loc) · 6.79 KB
/
setup-macos.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
################################################################################
# System Preferences > Sound
################################################################################
# Play feedback when volume is changed
defaults write -globalDomain "com.apple.sound.beep.feedback" -int 1
################################################################################
# System Preferences > General > Language & Region
################################################################################
defaults write ".GlobalPreferences_m" AppleLanguages -array en-GB pl-GB
defaults write -globalDomain AppleLanguages -array en-GB pl-GB
################################################################################
# System Preferences > Appearance
################################################################################
# Appearance: Auto
defaults write -globalDomain AppleInterfaceStyleSwitchesAutomatically -bool true
# Click in the scrollbar to: Jump to the spot that's clicked
defaults write -globalDomain AppleScrollerPagingBehavior -bool true
################################################################################
# System Preferences > Accessibility
################################################################################
# Pointer Control > Trackpad Options > Dragging Style: Three Finger Drag
defaults write com.apple.AppleMultitouchTrackpad Dragging -bool false
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
################################################################################
# System Preferences > Control Centre
################################################################################
# Control Centre Modules > Bluetooth > Show in Menu Bar
defaults write "com.apple.controlcenter" "NSStatusItem Visible Bluetooth" -bool true
# Control Centre Modules > Screen Mirroring > Don't Show in Menu Bar
defaults write "com.apple.airplay" showInMenuBarIfPresent -bool false
# Control Centre Modules > Sound > Always Show in Menu Bar
defaults write "com.apple.controlcenter" "NSStatusItem Visible Sound" -bool true
# Control Centre Modules > Now Playing > Don't Show in Menu Bar
defaults write "com.apple.airplay" "NSStatusItem Visible NowPlaying" -bool false
# Menu Bar Only > Clock Options > Show Date: Never
defaults write "com.apple.menuextra.clock" ShowDate -int 2
# Menu Bar Only > Clock Options > Show tyhe day of a week
defaults write "com.apple.menuextra.clock" ShowDayOfWeek -bool false
# Menu Bar Only > Spotlight > Don't Show in Menu Bar
defaults -currentHost write com.apple.Spotlight MenuItemHidden -int 1
################################################################################
# System Preferences > Siri & Spotlight
################################################################################
#Ask Siri
defaults write com.apple.Siri SiriPrefStashedStatusMenuVisible -bool false
defaults write com.apple.Siri VoiceTriggerUserEnabled -bool false
################################################################################
# System Preferences > Desktop & Dock
################################################################################
# Dock > Size:
defaults write com.apple.dock tilesize -int 36
# Dock > Magnification
defaults write com.apple.dock largesize -int 54
# Dock > Magnification
defaults write com.apple.dock magnification -bool true
# Dock > Minimize windows using: Scale effect
defaults write com.apple.dock mineffect -string "scale"
# Dock > Minimize windows into application icon
defaults write com.apple.dock minimize-to-application -bool true
# Dock > Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Dock > Automatically hide and show the Dock (duration)
defaults write com.apple.dock autohide-time-modifier -float 0.4
# Dock > Automatically hide and show the Dock (delay)
defaults write com.apple.dock autohide-delay -float 0
# Show recent applications in Dock
defaults write com.apple.dock "show-recents" -bool false
# Windows & Apps > Prefer tabs when opening documents
defaults write -globalDomain AppleWindowTabbingMode -string "always"
# Desktop & Stage Manager > Click Wallpaper to reveal desktop > Only in Stage Manager
defaults write "com.apple.WindowManager" EnableStandardClickToShowDesktop -bool false
# Mission Controll > Automatically rearrange Spaces based on most recent use
defaults write com.apple.dock mru-spaces -bool false
################################################################################
# System Preferences > Lock Screen
################################################################################
# Start Screen Saver when inactive: Never
defaults -currentHost write com.apple.screensaver idleTime -int 0
################################################################################
# System Preferences > Keyboard
################################################################################
# Key repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
# Delay until repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 10
# Keyboard navigation
defaults write -globalDomain AppleKeyboardUIMode -int 2
# Txt Input > Show Input menu in menu bar
defaults write com.apple.TextInputMenu visible -bool false
# Txt Input > Correct spelling automatically
defaults write -globalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Txt Input > Capitalise words automatically
defaults write -globalDomain NSAutomaticCapitalizationEnabled -bool false
# Txt Input > Add full stop with double-space
defaults write -globalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
################################################################################
# System Preferences > Trackpad
################################################################################
# Tap to click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
################################################################################
# Finder > Preferences
################################################################################
# Show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Show wraning before changing an extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Show wraning before removing from iCloud Drive
defaults write com.apple.finder FXEnableRemoveFromICloudDriveWarning -bool false
# Finder > View > As List
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Finder > View > Show Path Bar
defaults write com.apple.finder ShowPathbar -bool true
# Kill affected apps
for app in "Dock" "Finder"; do
killall "${app}" > /dev/null 2>&1
done
# Done
echo "Done. Note that some of these changes require a logout/restart to take effect."