Created
July 11, 2016 22:52
-
-
Save toonetown/ad5ba3342385270f2fe28ff31768784b to your computer and use it in GitHub Desktop.
Disables animations (helpful for accessing machines over a network)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
# Stops animations for the current user (or all new users if run as root). Note, if you want to use this in | |
# conjunction with the defaultSettings.sh gist, run that one first. | |
# | |
#!/bin/bash | |
# Change to our home preference directory, unless we are running as root | |
if [ "$(id -u)" != "0" ]; then | |
cd "${HOME}/Library/Preferences" || exit $? | |
else | |
cd "/System/Library/User Template/English.lproj/Library/Preferences/" || exit $? | |
fi | |
/usr/libexec/PlistBuddy -c 'add :NSAutomaticWindowAnimationsEnabled bool false' .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :NSWindowResizeTime real 0.001' .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :QLPanelAnimationDuration real 0' .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :NSDocumentRevisionsWindowTransformAnimation bool false' .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :NSToolbarFullScreenAnimationDuration real 0' .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :NSBrowserColumnAnimationSpeedMultiplier real 0' .GlobalPreferences.plist | |
plutil -convert binary1 .GlobalPreferences.plist | |
/usr/libexec/PlistBuddy -c 'add :expose-animation-duration real 0' com.apple.dock.plist | |
/usr/libexec/PlistBuddy -c 'add :springboard-show-duration real 0' com.apple.dock.plist | |
/usr/libexec/PlistBuddy -c 'add :springboard-hide-duration real 0' com.apple.dock.plist | |
/usr/libexec/PlistBuddy -c 'add :springboard-page-duration real 0' com.apple.dock.plist | |
plutil -convert binary1 com.apple.dock.plist | |
/usr/libexec/PlistBuddy -c 'add :DisableAllAnimations bool true' com.apple.finder.plist | |
plutil -convert binary1 com.apple.finder.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install (either as a user, or as root):
bash <(curl -sSL https://gist.githubusercontent.com/toonetown/ad5ba3342385270f2fe28ff31768784b/raw)
If you will be using in conjunction with defaultSettings.sh, run that script first, then run this one.