Moving the Dock

So that I don't have to go looking for this again next time, you can move the dock to the left, center, or right (or top, middle, or bottom, if you have it on the left or right side of the screen) using one of the following Terminal commands:

defaults write com.apple.dock pinning -string start

defaults write com.apple.dock pinning -string end

defaults write com.apple.dock pinning -string middle

Then restart the Dock for it to take effect:

killall Dock

Update: Bryan's comment made me realize I wasn't really clear on what I was talking about here. In the Dock settings, you can choose to position it on the left, right, or bottom of the screen, but by default, it will be in the middle of that edge. These commands will pin it to one side. So for example, if you have your Dock on the left side like I do, and use the first command (with the start option), it will appear on the left side but right up against the menu bar. Or use end to get it up against the bottom - this is where mine is, see:

Dock Position

2 Comments

Just curious, why the need

Just curious, why the need for moving it via the command line?

What I find the most

What I find the most interesting about this blog post is actually what is in your dock and menu bar :P

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Syndicate content