Skip to content

Instantly share code, notes, and snippets.

@toonetown
Created July 11, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toonetown/ad5ba3342385270f2fe28ff31768784b to your computer and use it in GitHub Desktop.
Save toonetown/ad5ba3342385270f2fe28ff31768784b to your computer and use it in GitHub Desktop.
Disables animations (helpful for accessing machines over a network)
###########
# 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
@toonetown
Copy link
Author

toonetown commented Jul 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment