Tuesday, October 30, 2007

Leopard: Fixing the 3D Dock

Some have complained about the appearance of the Dock on Leopard, and offered a bit of command line magic to fix it.   Below is a shell script to automate the process of turning the dock "shelf" on and off.

When called as "flatdock" you get the non-3D version of the dock;





Called as "3ddock" the shelf is restored:





To install, place the script in your PATH, call it flatdock, make it executable, and then hardlink to 3ddock.



#!/bin/sh
state="YES"
name=`basename $0`
case $name in
3ddock) state="NO";;
flatdock) state="YES";;
esac
defaults write com.apple.dock no-glass -boolean $state
killall Dock

No comments: