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

Added default to add a spacer to the dock. #47

Merged
merged 1 commit into from Apr 4, 2012
Merged

Added default to add a spacer to the dock. #47

merged 1 commit into from Apr 4, 2012

Conversation

KeyboardCowboy
Copy link
Contributor

I've used this on Snow Leopard and Lion and it works great. It may be worth documenting that you need to run "killall Dock" after many of these to get them to show up.

Thanks for the list.

@mathiasbynens
Copy link
Owner

Thanks for the pull request.

For future reference, it’s also possible to add spacers to the right side of the Dock (where the Trash is).

# Add a spacer to the left side of the Dock (where the applications are)
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
# Add a spacer to the right side of the Dock (where the Trash is)
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'

I won’t use this myself, but I’ll consider pulling it in and commenting it by default.

P.S. The killall Dock is performed at the bottom of .osx — see the # Kill affected applications line :)

mathiasbynens added a commit that referenced this pull request Apr 4, 2012
.osx: Add a spacer to the Dock
@mathiasbynens mathiasbynens merged commit 7fbc789 into mathiasbynens:master Apr 4, 2012
@broven
Copy link

broven commented Oct 1, 2017

screen shot 2017-10-01 at 9 09 43 pm
This script is not work as expected, 10.13

parejadan added a commit to parejadan/dotfiles that referenced this pull request Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants