-
Notifications
You must be signed in to change notification settings - Fork 55
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
Edit items in Dock #62
Labels
new command
Add a new command
Comments
Maybe it also makes sense to reference to dockutil which is pretty flexible to manage the dock items. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
defaults
command existsFolder: Dock
Command: defaults write com.apple.dock 'persistent-apps' -array " "
Examples:
Remove all : defaults write com.apple.dock 'persistent-apps' -array " "
Add app :
defaults write com.apple.dock 'persistent-apps' -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>FULL APP PATH</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"
Add folder :
defaults write com.apple.dock 'persistent-others' -array-add '<dict><key>tile-data</key><dict><key>arrangement</key><integer>0</integer><key>displayas</key><integer>0</integer><key>file-data</key><dict><key>_CFURLString</key><string>FULL ITEM PATH</string><key>_CFURLStringType</key><integer>0</integer></dict><key>preferreditemsize</key><integer>-1</integer><key>showas</key><integer>0</integer></dict><key>tile-type</key><string>directory-tile</string></dict>'
Options for "displayas" are 0 for stack view or 1 for folder icon, options for "showas" are 0 for auto, 1 for fan view, 2 for grid view or 3 for list view.
The text was updated successfully, but these errors were encountered: