From 04a46080de3521bf8a992291efbc0b153e3ac259 Mon Sep 17 00:00:00 2001 From: Dan Cigrang Date: Tue, 16 Jan 2024 21:53:37 -0600 Subject: [PATCH] dockutil: add page (#12077) * dockutil: add page --------- Co-authored-by: Juri Dispan --- pages/osx/dockutil.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/osx/dockutil.md diff --git a/pages/osx/dockutil.md b/pages/osx/dockutil.md new file mode 100644 index 000000000..da7fbe0f9 --- /dev/null +++ b/pages/osx/dockutil.md @@ -0,0 +1,32 @@ +# dockutil + +> Manage macOS dock items. +> More information: . + +- Add an application to the end of the current user's dock: + +`dockutil --add {{path/to/application}}` + +- Replace one application with another in the current user's dock: + +`dockutil --add {{/path/to/application}} --replacing '{{dock_item_label}}'` + +- Add a directory with view options and display it as a folder icon or stack: + +`dockutil --add {{/path/to/directory}} --view {{grid|fan|list|auto}} --display {{folder|stack}}` + +- Add a URL dock item after another item: + +`dockutil --add {{vnc://example_server.local}} --label '{{Example VNC}}' --after {{dock_item_label}}` + +- Remove an application from the dock given its dock label name: + +`dockutil --remove '{{dock_item_label}}'` + +- Add a spacer in a section after an application: + +`dockutil --add '' --type {{spacer|small-spacer|flex-spacer}} --section {{apps}} --after {{dock_item_label}}` + +- Remove all spacer tiles: + +`dockutil --remove spacer-tiles`