Adding Space to macOS' Dock for Grouping

Sometimes you want to group the application icons on macOS’ dock. It gives better view of the applications that are useful together.

A sample Dock with two spaces

It is very easy to have groupings between application icons on your dock with the help of separating space. The command to create a space in the dock is as the following one. You can create as many of the as you want in consequence.

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

After creating as many docks as you need, you’ll have restart Dock service. To restart it, you need to kill it with the killall comment:

1
killall Dock

You can move the empty item on the dock, and you can add as many of them as you want.

If you don’t like it, just right click the empty item (via control+click) then select “remove item”. You can watch the following video to see how it works.