-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacos.sh
executable file
·44 lines (31 loc) · 1.3 KB
/
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
## manual things
# disable cmd-h for required applications in Keyboard > Shortcuts > App Shortcuts
# e.g. kitty
# this may also automatically work:
app="kitty"
bundle=$(lsappinfo info -only bundleid "$app" | cut -d '"' -f4)
defaults write "$bundle" NSUserKeyEquivalents -dict-add "Hide $app" nil
# disable "Search man page index in Terminal" shift-cmd-A which conflicts with intellij
# disable spotlight index for things like node_modules in System Preferences > Spotlight > Privacy
## commands
# show hidden files
defaults write com.apple.Finder AppleShowAllFiles true
# fast key repeat
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 10
# trackpad speed
defaults write -g com.apple.trackpad.scaling 2
defaults write -g com.apple.mouse.scaling 2.5
## dock
# fast opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# speed up dialog boxes
defaults write NSGlobalDomain NSWindowResizeTime 0.001
# only active app
defaults write com.apple.dock static-only -bool true
# cmd-option-d show/hide animation is instant.
defaults write com.apple.dock autohide-time-modifier -float 0
## quick look
defaults write -g QLPanelAnimationDuration -float 0
killall Dock