Skip to content

Instantly share code, notes, and snippets.

@danijeljw
Created November 18, 2013 04:47
Show Gist options
  • Save danijeljw/7522700 to your computer and use it in GitHub Desktop.
Save danijeljw/7522700 to your computer and use it in GitHub Desktop.
Bash script to change the Dock from 2D to 3D and vice-versa. Works in OS X 10.8.x and below.
#!/bin/bash
dock2d3d=$(defaults read com.apple.dock | grep "no-glass")
if [ $dock2d3d == "\"no=glass\" = 0;" ]
then
defaults write com.apple.dock no-glass -boolean YES && killall Dock
else
defaults write com.apple.dock no-glass -boolean NO && killall Dock
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment