How to Put Your Dock In The Corner

cornerdock.png

By default, the OS X Dock is located in the middle of either the bottom or the sides of the screen. It can, however, be pinned to one of the “corners.” For example, in the screenshot above, the dock is located on the right but pinned to the bottom.

The dock works fine when pinned to either the top / bottom / left / right and it only takes two lines at the Terminal to achieve.

Run the Terminal Application

runningterminal.png

Go to the Spotlight icon in the top right of the screen and search for “terminal”. You can then click on the “Terminal” application to run it.

By default, the dock is pinned to the “middle” of either the bottom or the side (wherever you choose to have your Dock), but you can also pin it to the “start” or the “end.” If your dock is on the bottom of the screen, the start is at left, the end is at the right. If your dock is on the side of the screen, the start is at the top, the end is at the bottom (in the first screenshot in this article, the dock is on the right of the screen and pinned to the “end.”)

Change The Setting

runningterminal2.png

To pin the dock to the start, use: defaults write com.apple.dock pinning -string start

To pin the dock to the end, use: defaults write com.apple.dock pinning -string end

To return the dock to the middle, use: defaults write com.apple.dock pinning -string middle

“Restart” the Dock

Once the setting has been changed, you need to run: killall Dock

This command restarts the program that displays the Dock on the screen. It can take a few seconds to refresh, but once it’s up again, it should now be pinned to the corner!

To close the Terminal application once you’re done, type exit and press Enter, or press Cmd+Q.

You can leave a response. Pinging / trackback is not available for this post.

Comments (2)

hello,

i thought i’d like my dock pinned to one corner but i don’t actually … how can i ‘unpin’ it?

thanks!

rachel — March 8th, 2008

It’s in the piece, but:

“To return the dock to the middle, use: defaults write com.apple.dock pinning -string middle”

Peter Cooper — March 9th, 2008

Leave a Reply

If you wish, you may use these HTML tags to format your comment:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>