-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMacOS_UI_performance.sh
executable file
·31 lines (27 loc) · 1.39 KB
/
MacOS_UI_performance.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
#!/bin/sh
# This script contains a list of common performance optimisations for MacOS
# Disable UI Animations
echo "# Disabling UI Animations"
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write -g NSScrollViewRubberbanding -bool false
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
defaults write com.apple.finder DisableAllAnimations -bool true
defaults write com.apple.Mail DisableSendAnimations -bool true
defaults write com.apple.Mail DisableReplyAnimations -bool true
defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.2
# Disable menu bar transparency
echo "# Disabling menu bar transparency"
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Disable send and reply animations in Mail.app
echo "# Disabling send and reply animations in Mail"
defaults write com.apple.Mail DisableReplyAnimations -bool true
defaults write com.apple.Mail DisableSendAnimations -bool true
# Keyboard Speed
echo "# Increasing keyboard speed"
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 10