Friday, July 3, 2009

Customize the Dock location in OS X

In Mac OS X, the Dock is by default located at the bottom of the screen. It is anchored to the center and will expand evenly to the left and right as applications are opened and will shrink back toward the center as they are closed. Under the Dock preference pane is System Preferences the Dock's location can be changed so that it is attached to either the left or right side of the screen. The Dock's location can, however, be customized even further by pinning it to one of the corners of the screen.

Run this command at the Terminal to see the current pinning location:
defaults read com.apple.Dock pinning
The default value for this is "middle". The other options are "start" and "end". "Start" will pin the Dock to the left corner of the screen if it is located at the bottom or to the top corner if the Dock is located on either side. "End" will pin the Dock to the right corner of the screen if it is located at the bottom or to the bottom corner if the Dock is located on either side. To change the pinning location, run this command:
defaults write com.apple.Dock pinning [value]
For the changes to take effect you will need to restart the Dock:
killall Dock
The Dock will restart on its own and when it does it will have moved according to your newly specified location.

No comments:

Post a Comment