-
Notifications
You must be signed in to change notification settings - Fork 0
/
.macOS
executable file
·114 lines (70 loc) · 2.4 KB
/
.macOS
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
#!/usr/bin/env zsh
## Global
#
# Disable automatic capitalization
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
# Disable automatic period substitution
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
# Disable smart dashes
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Disable smart quotes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
## Menu
#
# Remove date and day of the week from time
defaults write com.apple.menuextra.clock ShowAMPM -bool true
defaults write com.apple.menuextra.clock ShowDate -int 2
defaults write com.apple.menuextra.clock ShowDayOfWeek -bool false
# Disable keyboard menu
defaults write com.apple.TextInputMenu visible -bool false
## Keyboard
#
# Disable dictation
defaults write com.apple.HIToolbox AppleDictationAutoEnable -int 0
# Disable emoji function key
defaults write com.apple.HIToolbox AppleFnUsageType -int 0
## Mouse
#
# Disable mouse shake magnification
defaults write ~/Library/Preferences/.GlobalPreferences CGDisableCursorLocationMagnification -bool true
## Login
#
# Disable app resume on login
defaults write com.apple.loginwindow TALLogoutSavesState -bool false
## Dock
#
# Set dock size
defaults write com.apple.dock tilesize -int 30
# Disable recent applications
defaults write com.apple.dock show-recents -bool false
# Disable mouseover magnification
defaults write com.apple.dock magnification -bool false
## Network
#
# Disable .DS_Store creation on network drives
# Ref: https://support.apple.com/en-ca/HT208209
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
## Safari
#
# Set homepage to start page
USER=$(whoami)
sudo dscl . mcxset /Users/$USER com.apple.Safari HomePage always -string "favorites://"
## Siri
#
# Disable Siri on Menu
defaults write com.apple.Siri StatusMenuVisible -bool false
# Disable "Hey Siri" voice triggers
defaults write com.apple.Siri VoiceTriggerUserEnabled -bool false
## Time Machine
#
# Disable popup when new disk is mounted
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
## Window Manager
#
# Disable show desktop on click
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
## Restart services
#
killall Dock