-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup3-macdefaults.sh
More file actions
46 lines (36 loc) · 1.66 KB
/
setup3-macdefaults.sh
File metadata and controls
46 lines (36 loc) · 1.66 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
# keyrepeatやtrackpadの変更はバグったときに面倒なので注意して実施する
# defaults read -g KeyRepeat # default 2
# defaults read -g InitialKeyRepeat # default 15
defaults write -g KeyRepeat -int 2
defaults write -g InitialKeyRepeat -int 12
# Xcodeにビルド時間を表示する
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
# スクリーンショット
## 英語に
defaults write com.apple.screencapture name ""
## 保存先の変更
echo 'defaults write com.apple.screencapture location path'
# Dock
defaults write com.apple.dock persistent-apps -array #Dock に標準で入っている全てのアプリを消す、Finder とごみ箱は消えない
defaults write com.apple.dock autohide -bool true
killall Dock
# finder
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder QuitMenuItem -bool true
# trackpad
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# status item
# https://zenn.dev/usagimaru/articles/9c4f45b0f3c906
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 9
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6
## index再生成
killall mds
sudo mdutil -i on /
sudo mdutil -E /
# バッテリーのパーセントを表示する
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# Kill affected applications
for app in Finder Dock SystemUIServer; do killall "$app" >/dev/null 2>&1; done