是否可以关闭OS X上的所有动画?
是否可以关闭OS X上的所有动画?
Answers:
我只启用了其中的前四个,但是这里都是禁用我发现的动画的所有隐藏首选项。
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001
# opening and closing Quick Look windows
defaults write -g QLPanelAnimationDuration -float 0
# rubberband scrolling (doesn't affect web views)
defaults write -g NSScrollViewRubberbanding -bool false
# resizing windows before and after showing the version browser
# also disabled by NSWindowResizeTime -float 0.001
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
# showing a toolbar or menu bar in full screen
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
# scrolling column views
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
# showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
# showing and hiding Mission Control, command+numbers
defaults write com.apple.dock expose-animation-duration -float 0
# showing and hiding Launchpad
defaults write com.apple.dock springboard-show-duration -float 0
defaults write com.apple.dock springboard-hide-duration -float 0
# changing pages in Launchpad
defaults write com.apple.dock springboard-page-duration -float 0
# at least AnimateInfoPanes
defaults write com.apple.finder DisableAllAnimations -bool true
# sending messages and opening windows for replies
defaults write com.apple.Mail DisableSendAnimations -bool true
defaults write com.apple.Mail DisableReplyAnimations -bool true
如果您不想复制粘贴顶部答案中显示的每个命令,只需选择此文本,将其复制粘贴到终端并按Enter(它将立即执行所有命令而无需滚动)
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -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.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock expose-animation-duration -float 0
defaults write com.apple.dock springboard-show-duration -float 0
defaults write com.apple.dock springboard-hide-duration -float 0
defaults write com.apple.dock springboard-page-duration -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 delete -g NSAutomaticWindowAnimationsEnabled
defaults delete -g NSScrollAnimationEnabled
defaults delete -g NSWindowResizeTime
defaults delete -g QLPanelAnimationDuration
defaults delete -g NSScrollViewRubberbanding
defaults delete -g NSDocumentRevisionsWindowTransformAnimation
defaults delete -g NSToolbarFullScreenAnimationDuration
defaults delete -g NSBrowserColumnAnimationSpeedMultiplier
defaults delete com.apple.dock autohide-time-modifier
defaults delete com.apple.dock autohide-delay
defaults delete com.apple.dock expose-animation-duration
defaults delete com.apple.dock springboard-show-duration
defaults delete com.apple.dock springboard-hide-duration
defaults delete com.apple.dock springboard-page-duration
defaults delete com.apple.finder DisableAllAnimations
defaults delete com.apple.Mail DisableSendAnimations
defaults delete com.apple.Mail DisableReplyAnimations
Mac OS X还具有对话框,例如“另存为”框(CMD + SHIFT + S)或“打印”框(CMD + P)。您可以使用以下命令来调整所有这些框的显示速度:
瞬间:
defaults write NSGlobalDomain NSWindowResizeTime .001
快速:
defaults write NSGlobalDomain NSWindowResizeTime .1
默认值(0.2秒):
defaults delete NSGlobalDomain NSWindowResizeTime
1 = 1秒。要查看差异,您必须重新启动终端程序等应用程序,并通过按CMD + S(例如“保存”)来召唤对话框。您可以在defaults-write.com中找到更多命令行调整
defaults read -g NSWindowResizeTime
打印0.001
(在我的情况下)。要获取帮助defaults
,请在终端中运行。我将使用复制粘贴列表更新答案,该列表会将所有内容恢复为默认值。世界很小,不是瓦加根吗?:)
动画在OS X中无处不在,并且不可能通过一个全局设置禁用所有动画,这使这成为一个非常复杂的问题,无法完全回答。
我建议您在发现烦人的动画时尝试一次禁用一项功能。检查系统偏好设置以启动。例如,可以在系统偏好设置-> Dock中关闭Dock放大动画。
另外,请查看TinkerTool,它使您可以执行以下操作:
如果有一个确实让您感到烦恼的动画,并且您不知道如何禁用它,请尝试在此处针对该特定问题发布一个单独的问题,您将获得快速,准确的响应。(而且,作为一个很好的副作用,您和帮助您的人都会以这种方式获得更多的销售代表。)
除上述答案外,您还可以使用Secrets。Secrets是开源的PrefPane,可让您为Mac上的各种程序设置各种隐藏选项。
更新:主站点已关闭,该项目似乎已死。如果您仍想使用原始版本,则这里是Google代码档案。
如果您对Terminal保持警惕,Mountain Tweaks是另一个有用的GUI,可以关闭,打开和调整Lion和Mountain Lion的行为。
这个答案,包装成一个shell脚本,允许您在状态之间进行切换。
$ animations_osx.sh
animations disabled - reboot may be required
$ animations_osx.sh
animations enabled - reboot may be required
$ animations_osx.sh OFF
animations disabled - reboot may be required
$ animations_osx.sh ON
animations enabled - reboot may be required
FILE=/tmp/__ez_file_$(date +%s)
function show_help()
{
IT=$(CAT <<EOF
usage: {ON|OFF}
enables or disables animations in osx.
if you don't pass any arguments, it'll toggle between enabled and disabled.
e.g.
ON => All animations are enabled
OFF => All animations are disabled
)
echo "$IT"
exit
}
if [ "$1" == "help" ]
then
show_help
fi
# returns the opposite of the current state for easy toggling
function getNewState()
{
defaults read com.apple.dock expose-animation-duration &> $FILE
VAL=$(cat $FILE)
rm $FILE
if [ "$VAL" == "0" ]
then
echo "ON"
else
echo "OFF"
fi
}
if [ -z "$1" ]
then
OP=$(getNewState)
else
OP=$1
fi
if [ "$OP" == "OFF" ]
then
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -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.dock autohide-time-modifier -float 0
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock expose-animation-duration -float 0
defaults write com.apple.dock springboard-show-duration -float 0
defaults write com.apple.dock springboard-hide-duration -float 0
defaults write com.apple.dock springboard-page-duration -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
echo "animations disabled - reboot may be required"
exit;
fi
if [ "$OP" == "ON" ]
then
defaults delete -g NSAutomaticWindowAnimationsEnabled &> $FILE
defaults delete -g NSScrollAnimationEnabled &> $FILE
defaults delete -g NSWindowResizeTime &> $FILE
defaults delete -g QLPanelAnimationDuration &> $FILE
defaults delete -g NSScrollViewRubberbanding &> $FILE
defaults delete -g NSDocumentRevisionsWindowTransformAnimation &> $FILE
defaults delete -g NSToolbarFullScreenAnimationDuration &> $FILE
defaults delete -g NSBrowserColumnAnimationSpeedMultiplier &> $FILE
defaults delete com.apple.dock autohide-time-modifier &> $FILE
defaults delete com.apple.dock autohide-delay &> $FILE
defaults delete com.apple.dock expose-animation-duration &> $FILE
defaults delete com.apple.dock springboard-show-duration &> $FILE
defaults delete com.apple.dock springboard-hide-duration &> $FILE
defaults delete com.apple.dock springboard-page-duration &> $FILE
defaults delete com.apple.finder DisableAllAnimations &> $FILE
defaults delete com.apple.Mail DisableSendAnimations &> $FILE
defaults delete com.apple.Mail DisableReplyAnimations &> $FILE
rm $FILE
echo "animations enabled - reboot may be required"
exit;
fi
show_help