added dock-switch to osx plugin. switches between 3d and 2d
This commit is contained in:
@@ -11,3 +11,27 @@ function tab() {
|
||||
end tell
|
||||
EOF
|
||||
}
|
||||
|
||||
# this one switches your os x dock between 2d and 3d
|
||||
# thanks to savier.zwetschge.org
|
||||
function dock-switch() {
|
||||
|
||||
if [ $(uname) = "Darwin" ]; then
|
||||
|
||||
if [ $1 = 3d ] ; then
|
||||
defaults write com.apple.dock no-glass -boolean NO
|
||||
killall Dock
|
||||
|
||||
elif [ $1 = 2d ] ; then
|
||||
defaults write com.apple.dock no-glass -boolean YES
|
||||
killall Dock
|
||||
|
||||
else
|
||||
echo "usage:"
|
||||
echo "dockswitch 2d"
|
||||
echo "dockswitch 3d."
|
||||
fi
|
||||
else
|
||||
echo "sorry. you're currently not using os x"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user