Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a spacer to the Dock #328

Open
4 of 5 tasks
VoxDai opened this issue Dec 9, 2023 · 1 comment
Open
4 of 5 tasks

Add a spacer to the Dock #328

VoxDai opened this issue Dec 9, 2023 · 1 comment
Labels
new command Add a new command

Comments

@VoxDai
Copy link

VoxDai commented Dec 9, 2023

  • I made sure this command is not in the commands list
  • I searched and didn't find this command in the listed issues
  • I know this defaults command exists
  • I know this command works on macOS current version
  • I know this command is deprecated on macOS current version
  • Folder: Dock
  • Command:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && Killall Dock

defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}' && Killall Dock
  • Argument: string

Add a spacer to the dock. You can simply drag this spacer just like dragging an app icon. And dragging it out of the Dock would remove it.
Screenshot 2023-12-09 at 15 47 58

@VoxDai VoxDai added the new command Add a new command label Dec 9, 2023
@Swiss-Mac-User
Copy link

Swiss-Mac-User commented May 4, 2024

There's also a 3rd option to only add a smaller / tiny gap element to the Dock:

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

Note: all the commands here still work up to macOS 14.5 Sonoma 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Add a new command
Projects
None yet
Development

No branches or pull requests

2 participants