-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosx
More file actions
executable file
·179 lines (157 loc) · 13.7 KB
/
osx
File metadata and controls
executable file
·179 lines (157 loc) · 13.7 KB
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
#!/usr/bin/env bash
./dock.sh
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Displays.menu" \
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
"/System/Library/CoreServices/Menu Extras/AirPort.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu" \
"/System/Library/CoreServices/Menu Extras/Battery.menu" \
"/System/Library/CoreServices/Menu Extras/Clock.menu"
# Set Menu Bar item positions
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position Siri" -float 173
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position com.apple.menuextra.airport" -float 334
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position com.apple.menuextra.battery" -float "255.5"
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position com.apple.menuextra.bluetooth" -float 364
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position com.apple.menuextra.clock" -float 167
defaults write com.apple.systemuiserver "NSStatusItem Preferred Position com.apple.menuextra.volume" -float 304
# Set Menu Bar item visibility
defaults write com.apple.systemuiserver "NSStatusItem Visible Siri" -boolean YES
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.airport" -boolean YES
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.battery" -boolean YES
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.bluetooth" -boolean YES
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.clock" -boolean YES
defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.volume" -boolean YES
# Set trackpad settings
defaults write com.apple.AppleMultitouchTrackpad SecondClickThreshold -int 1
defaults write com.apple.AppleMultitouchTrackpad TrackpadFiveFingerPinchGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadFourFingerHorizSwipeGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadFourFingerPinchGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadFourFingerVertSwipeGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadHandResting -boolean YES
defaults write com.apple.AppleMultitouchTrackpad TrackpadHorizScroll -int 1
defaults write com.apple.AppleMultitouchTrackpad TrackpadMomentumScroll -boolean YES
defaults write com.apple.AppleMultitouchTrackpad TrackpadPinch -int 1
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -boolean YES
defaults write com.apple.AppleMultitouchTrackpad TrackpadRotate -int 1
defaults write com.apple.AppleMultitouchTrackpad TrackpadScroll -boolean YES
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -boolean NO
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerHorizSwipeGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerTapGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerVertSwipeGesture -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadTwoFingerDoubleTapGesture -int 1
defaults write com.apple.AppleMultitouchTrackpad TrackpadTwoFingerFromRightEdgeSwipeGesture -int 3
# Set Safari settings
defaults write com.apple.Safari AutoFillCreditCardData -boolean NO
defaults write com.apple.Safari AutoFillFromAddressBook -boolean NO
defaults write com.apple.Safari AutoFillMiscellaneousForms -boolean NO
defaults write com.apple.Safari AutoFillPasswords -boolean YES
defaults write com.apple.Safari AutoOpenSafeDownloads -boolean NO
defaults write com.apple.Safari HomePage -string "https://duckduckgo.com/"
defaults write com.apple.Safari IncludeDevelopMenu -boolean YES
defaults write com.apple.Safari SendDoNotTrackHTTPHeader -boolean YES
defaults write com.apple.Safari ShowFavoritesBar -boolean YES
defaults write com.apple.Safari "ShowFavoritesBar-v2" -boolean NO
defaults write com.apple.Safari ShowFullURLInSmartSearchField -boolean NO
defaults write com.apple.Safari ShowOverlayStatusBar -boolean YES
defaults write com.apple.Safari ShowSidebarInNewWindows -boolean NO
defaults write com.apple.Safari ShowSidebarInTopSites -boolean NO
defaults write com.apple.Safari ShowStatusBar -boolean YES
defaults write com.apple.Safari ShowStatusBarInFullScreen -boolean NO
defaults write com.apple.Safari TopSitesGridArrangement -boolean YES
# Set Terminal settings
defaults write com.apple.Terminal "Default Window Settings" -string Visor
defaults write com.apple.Terminal "Startup Window Settings" -string Visor
defaults write com.apple.Terminal "Window Settings" -dict-add "Visor" "{
"ANSIBlueColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734630 20302031 00100280 02d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4e5b6269 6b6d727d 868e919a acafb400 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000b6>;
"ANSIBrightBlueColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734f10 1c302e32 30333431 33353239 3820302e 32303237 30333330 32362031 00100280 02d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4e5b6281 83858a95 9ea6a9b2 c4c7cc00 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000ce>;
"BackgroundBlur" = 0;
"BackgroundColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 574e5357 68697465 5c4e5343 6f6c6f72 53706163 65562463 6c617373 46302030 2e370010 038002d2 10111213 5a24636c 6173736e 616d6558 24636c61 73736573 574e5343 6f6c6f72 a2121458 4e534f62 6a656374 5f100f4e 534b6579 65644172 63686976 6572d117 1854726f 6f748001 08111a23 2d32373b 4148505d 646b6d6f 747f8890 939caeb1 b6000000 00000001 01000000 00000000 19000000 00000000 00000000 00000000 b8>;
"CursorBlink" = 1;
"CursorColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734630 20312030 00100280 02d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4e5b6269 6b6d727d 868e919a acafb400 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000b6>;
"CursorType" = 0;
"Font" = <62706c69 73743030 d4010203 04050618 19582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a4 07081112 55246e75 6c6cd409 0a0b0c0d 0e0f1056 4e535369 7a65584e 5366466c 61677356 4e534e61 6d655624 636c6173 73234026 00000000 00001010 80028003 5a416e64 616c654d 6f6e6fd2 13141516 5a24636c 6173736e 616d6558 24636c61 73736573 564e5346 6f6e74a2 1517584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11a1b 54726f6f 74800108 111a232d 32373c42 4b525b62 69727476 78838893 9ca3a6af c1c4c900 00000000 00010100 00000000 00001c00 00000000 00000000 00000000 0000cb>;
"FontAntialias" = 0;
"Linewrap" = 1;
"ProfileCurrentVersion" = "2.04";
"SelectionColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734f10 29302e30 33313337 32353439 30322030 2e323233 35323934 31313820 302e3031 39363037 38343331 34001001 8002d210 1112135a 24636c61 73736e61 6d655824 636c6173 73657357 4e53436f 6c6f72a2 1214584e 534f626a 6563745f 100f4e53 4b657965 64417263 68697665 72d11718 54726f6f 74800108 111a232d 32373b41 484e5b62 8e909297 a2abb3b6 bfd1d4d9 00000000 00000101 00000000 00000019 00000000 00000000 00000000 000000db>;
"TextBoldColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734630 20312030 00100180 02d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4e5b6269 6b6d727d 868e919a acafb400 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000b6>;
"TextColor" = <62706c69 73743030 d4010203 04050615 16582476 65727369 6f6e5824 6f626a65 63747359 24617263 68697665 72542474 6f701200 0186a0a3 07080f55 246e756c 6cd3090a 0b0c0d0e 554e5352 47425c4e 53436f6c 6f725370 61636556 24636c61 73734630 20312030 00100280 02d21011 12135a24 636c6173 736e616d 65582463 6c617373 6573574e 53436f6c 6f72a212 14584e53 4f626a65 63745f10 0f4e534b 65796564 41726368 69766572 d1171854 726f6f74 80010811 1a232d32 373b4148 4e5b6269 6b6d727d 868e919a acafb400 00000000 00010100 00000000 00001900 00000000 00000000 00000000 0000b6>;
"UseBoldFonts" = 0;
"UseBrightBold" = 1;
"VisualBell" = 0;
"name" = Visor;
"shellExitAction" = 1;
"type" = "Window Settings";
};"
# Set TextEdit settings to be plain text by default
defaults write com.apple.TextEdit NSNavPanelExpandedStateForSaveMode -int 1
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
defaults write com.apple.TextEdit RichText -int 0
defaults write com.apple.TextEdit ShowRuler -int 0
# Set Calculator to be scientific view and default to base 10 in programmer view
defaults write com.apple.calculator "Programmer_InputMode" -int 10
defaults write com.apple.calculator ViewDefaultsKey -string "Scientific"
# Set Dock preferences
defaults write com.apple.dock autohide -boolean NO # Do not autohide
defaults write com.apple.dock "expose-group-apps" -int 0
defaults write com.apple.dock largesize -float 128
defaults write com.apple.dock magnification -int 1
defaults write com.apple.dock "minimize-to-application" -int 1
defaults write com.apple.dock showAppExposeGestureEnabled -boolean YES
defaults write com.apple.dock showMissionControlGestureEnabled -boolean YES
defaults write com.apple.dock tilesize -int 36
defaults write com.apple.dock "wvous-bl-corner" -int 10
defaults write com.apple.dock "wvous-bl-modifier" -int 0
defaults write com.apple.dock "wvous-br-corner" -int 5
defaults write com.apple.dock "wvous-br-modifier" -int 0
defaults write com.apple.dock "wvous-tl-corner" -int 1
defaults write com.apple.dock "wvous-tl-modifier" -int 0
defaults write com.apple.dock "wvous-tr-corner" -int 2
defaults write com.apple.dock "wvous-tr-modifier" -int 0
# Set Xcode defaults
defaults write com.apple.dt.Xcode DVTTextEditorWrapsLines -boolean YES
defaults write com.apple.dt.Xcode DVTTextIndentUsingTabs -boolean NO
defaults write com.apple.dt.Xcode DVTTextShowLineNumbers -boolean YES
defaults write com.apple.dt.Xcode DVTTextIndentOnPaste -boolean YES
defaults write com.apple.dt.Xcode DVTTextShowAuthors -boolean NO
defaults write com.apple.dt.Xcode DVTTextShowCodeCoverage -boolean YES
defaults write com.apple.dt.Xcode DVTTextShowFoldingSidebar -boolean YES
defaults write com.apple.dt.Xcode DVTTextShowInvisibleCharacters -boolean NO
defaults write com.apple.dt.Xcode DVTTextShowMinimap -boolean NO
defaults write com.apple.dt.Xcode DVTTextShowPageGuide -boolean NO
defaults write com.apple.dt.Xcode DVTConvertExistingFilesLineEndings -boolean Yes
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -boolean YES
defaults write com.apple.finder ShowHardDrivesOnDesktop -boolean YES
defaults write com.apple.finder ShowMountedServersOnDesktop -boolean YES
defaults write com.apple.finder ShowPathbar -boolean YES
defaults write com.apple.finder ShowPreviewPane -boolean NO
defaults write com.apple.finder ShowRecentTags -boolean NO
defaults write com.apple.finder ShowRemovableMediaOnDesktop -boolean YES
defaults write com.apple.finder ShowSidebar -boolean YES
defaults write com.apple.finder ShowStatusBar -boolean YES
defaults write com.apple.finder SidebarDevicesSectionDisclosedState -boolean YES
# Show percentage beside battery menu bar item
defaults write com.apple.menuextra.battery ShowPercent -bool YES
# Immediately ask for password when resuming from screensaver
defaults write com.apple.screensaver askForPassword -boolean YES
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Configure Activity Monitor
defaults write com.apple.ActivityMonitor DiskGraphType -int 1
defaults write com.apple.ActivityMonitor NetworkGraphType -int 1
defaults write com.apple.ActivityMonitor UpdatePeriod -int 2
defaults write com.apple.ActivityMonitor SelectedTab -int 0
defaults write com.apple.ActivityMonitor ShowCategory -int 100
# Save screenshots as PNG
defaults write com.apple.screencapture type -string "png"
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool YES
# Expand print panel by default
defaults write NSGlobal PMPrintingExpandedStateForPrint -bool YES
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPRefs "Quit When Finished" -bool YES
# Disable smart quotes as they're annoying when typing code
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool NO
# Disable smart dashes as they're annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashsubstitutionEnabled -bool NO
# Show the ~/Library folder
chflags nohidden ~/Library