Add a Spacer to the Mac OS X Dock

Jan 19, 2011 - 10 Comments

mac dock spacer

You can add blank spacers to the Mac OS X Dock by issuing a defaults write command in the Terminal, you can see the effect in the screenshot above with the space between the Firefox icon and iChat icon.

To get a spacer paste the following command into the Terminal:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

You then must kill and relaunch the Dock to have the spacers appear, you can do this with the following command:

killall Dock

If you want multiple spacers, just issue the defaults write command the same number of times. Instead of repasting the command, you can do this by hitting the “Up” arrow on your keyboard within the Terminal to bring up the previously executed commands, just hit UP until you see the defaults write string and then hit return again.

The Dock spacers can be moved by simply dragging them around the Dock like any other icon. Likewise, you can remove the spacers by simply dragging them out of the Dock.

Thanks for the tip TJ!

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Paul Horowitz in Mac OS X, Tips & Tricks

10 Comments

» Comments RSS Feed

  1. Karl says:

    Great tip!
    Thanks
    /Karl

  2. Matthew says:

    Hi, this feature is really cool! I own a Mac and can try to add a spacer to the dock now.

  3. [...] to hit the “Up” arrow on your keyboard to bring up the commands those are executed earlier. [Via] [...]

  4. [...] OS X Daily Podobne artykuły:Przeźroczyste ikony w Dock Dosyć często zdarza mi się ukrywać okna za [...]

  5. [...] Add Spacers to the Mac OS X Dock – this is done with a Terminal command that must be executed once for each spacer you want to [...]

  6. [...] Add Spacers to the Mac OS X Dock – this is done with a Terminal command that must be executed once for each spacer you want to [...]

  7. [...] the icon size beyond the default limits, make various changes to the app icons within the Dock, add spacers to the left and right side of the Dock, add custom stacks, and [...]

  8. Lang says:

    Great tip!

    I recommend “killall -HUP Dock” (-HUP will relaunch so you don’t have to do it manually)

  9. Lewis England says:

    Is there a way to give this separator an image instead of just being blank?

    For example, I think it would be pretty cool to give it the standard dock separator image (between the apps and the documents folder), found in the dock.app folder

  10. bill says:

    cool. im experimenting with this, but how do i get it back to normal?..

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates