Add Spacers to the macOS Dock (Small & Large)

Iโ€™ve been using spacers in my dock forever, it a super nice way to organise apps within my dock. I use them to categories apps, in the screenshot you can see Iโ€™ve separated design apps and dev apps.

The icons are rotated because I have my dock on the right side of the screen, the screenshot has simply been rotated.

Open up Terminal

Open your favourite terminal application, Iโ€™m using Warp.

Execute the command

The spacers come in two sizes, use whichever you prefer, Iโ€™m using the small spacers in the screenshot above.

Small spacers:

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

Large spacers:

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

Arrange them however you please

You can move the blank space around like normal apps, you also remove them the same way too. To add more spacers, simply run the command again, or as many times as you need!

ยฉ 2023 0six.dev