Matteo Agosti

Software engineer

Add Spaces to Mac OS X Dock

I recently discovered that you can easily add spaces between Mac OS X Dock icons. Here’s how.

Simply open the Terminal and run the following command:

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

To see changes you need to restart the Dock process:

1
killall Dock

You can drag and move the spacer between icons as you would do with app icons. If you want to add another spacer simple re-run the first command. An example of what you could obtain

Screenshot of a Mac OS X Dock with spaces

For geeks: if you want to add the spacer to the right side of the Dock (documents section), run the following command:

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

If you want to discuss about this article, I'm @matteoagosti on Twitter.