https://github.com/andrewpetrochenkov/mac-dock
:apple: macOS Dock scripts
https://github.com/andrewpetrochenkov/mac-dock
cli macos
Last synced: 2 months ago
JSON representation
:apple: macOS Dock scripts
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/mac-dock
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2018-10-16T22:05:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:06:50.000Z (over 5 years ago)
- Last Synced: 2025-12-02T08:55:11.448Z (7 months ago)
- Topics: cli, macos
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[]()
[](https://pypi.org/project/mac-dock/)
[](https://www.npmjs.com/package/mac-dock)[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/mac-dock/actions)
### Installation
```bash
$ [sudo] pip install mac-dock
```
```bash
$ [sudo] npm i -g mac-dock
```
#### Examples
```bash
$ dock add-app /Applications/iTunes.app; killall Dock
```
```bash
# arrangement: 1 - name (default), 2 - added, 3 - modification, 4 - creation, 5 - kind
# displayas: 1 - folder, 2 - stack (default)
# showas: 1 - beep, 2 - grid, 3 - list, 4 - auto (default)
$ dock add-folder --arrangement=2 --displayas=1 --showas=1 ~/Downloads; killall Dock
```
```bash
$ dock apps
/Users/username/Applications/Google Chrome.app
/Users/username/Applications/Sublime Text.app
/Applications/Utilities/Terminal.app
/Applications/iTunes.app
```
```bash
$ dock folders
/Users/username/Downloads
```
```bash
$ dock rm /Applications/iTunes.app ~/Downloads; killall Dock
```