MacOS低配置关闭系统特效

#!/bin/bash
# macOS 11 Big Sur - 极简动画关闭优化
# 适合打字、浏览器、SSH 主力使用
echo "开始关闭系统动画特效..."
# 1. 关闭窗口动画(新建/关闭/最小化窗口)
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# 2. 缩短窗口调整时间
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# 3. 关闭弹性滚动(橡皮筋效果)
defaults write NSGlobalDomain NSScrollViewRubberbanding -bool false
# 4. Dock 自动隐藏/显示动画加速
defaults write com.apple.dock autohide-time-modifier -float 0.1
# 5. Mission Control 动画加速
defaults write com.apple.dock expose-animation-duration -float 0.1
# 6. Launchpad 动画加速
defaults write com.apple.dock springboard-show-duration -int 0
defaults write com.apple.dock springboard-hide-duration -int 0
# 7. 禁用 Dashboard(如果仍存在)
defaults write com.apple.dashboard mcx-disabled -bool true
# 重启 Dock 和 Finder 使修改生效
killall Dock
killall Finder
echo "系统动画特效已关闭/加速完成!建议注销或重启系统以完全生效。"
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
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
上次更新: 2026/05/23, 18:50:53