Organizing Your Workspace: Adding macOS Dock Spacers
Simple Terminal Commands
Recently I needed to add some spacers to my macOS dock to better categorize my apps. During the process, I discovered that there are actually two kinds of spacers available: Small and Large.
If you like a clean aesthetic, these invisible tiles are perfect for grouping similar applications together. Here are the commands to create them using your Terminal.
Small Spacer
Perfect for subtle separation between icons.
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}';killall Dock;
Large Spacer
Standard width spacing, identical to the gap between apps and the trash can.
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}';killall Dock;
Pro Tip: Once the spacer appears in your dock, you can click and drag it to any position, just like a regular app icon. To remove it, simply right-click the spacer and select "Remove from Dock."