How to add spaces in the Dock

It is possible to section off parts of the Dock by adding spacers.

Before:

After:

  1. Go to the Applications folder.
  2. Open the Utilities folder.
  3. Open Terminal.
  4. You can then copy and paste the following commands into the Terminal. Once pasted, press Enter.
    • To add a spacer to the applications side of the Dock:
      defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
    • To add a spacer to the right side of the Dock:
      defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
  5. You won’t see the changes straight away as you need to reload the Dock. To do this type killall Dock into Terminal. Make sure to use a capital D.
  6. Now that you see the changes you will notice a blank space in the dock for each time you entered the command. To move it, drag the invisible icon to where you want it to appear on the Dock. You can also remove it by dragging it off.

1 comment

  1. The code for adding a spacer to the left and right are the same.

    To add a spacer to the right side of the Dock the code should be:

    defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type=”spacer-tile”;}’

Leave a comment

Your email address will not be published. Required fields are marked *