Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haroenv/dock-spacer
This is a wrapper for the `defaults` commands that changes some things in the OS X Dock
https://github.com/haroenv/dock-spacer
defaults dock dock-spacer macos shell
Last synced: 13 days ago
JSON representation
This is a wrapper for the `defaults` commands that changes some things in the OS X Dock
- Host: GitHub
- URL: https://github.com/haroenv/dock-spacer
- Owner: Haroenv
- License: apache-2.0
- Created: 2015-01-24T10:41:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T07:49:31.000Z (about 7 years ago)
- Last Synced: 2024-06-11T19:56:59.412Z (5 months ago)
- Topics: defaults, dock, dock-spacer, macos, shell
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dock-spacer
This is a wrapper for the defaults command
`defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'` and others.
Those commands will add a new spacer (and more, read the source for more info) to the OS X dock.This is tested on Yosemite - High Sierra, should be working for all versions from 10.5 and newer.
# Installation
Clone this directory with
```sh
git clone https://github.com/Haroenv/dock-spacer.git
```Or download the zip, if you play that way.
Another option is to `curl` the script
```sh
curl -o dock-spacer.sh https://raw.githubusercontent.com/Haroenv/dock-spacer/master/dock-spacer.sh
```And then just run the script from the downloaded directory.
# Usage
Don't forget to give the file the proper permissions (to execute), by using `chmod u+x dock-spacer.sh`
`./dock-spacer.sh` for one spacer.
`./dock-spacer.sh -n 2` for 2.
`./dock-spacer.sh -d` for one documents (the right part) spacer
`./dock-spacer.sh -d 2` for two document spacers
`./dock-spacer.sh -t` to make hidden apps transparent
`./dock-spacer.sh -v` to make hidden apps back regular
`./dock-spacer.sh -s` to enable scroll gestures in the Dock for exposé and opening folders
`./dock-spacer.sh -s d` to disable scroll gestures
`./dock-spacer.sh -r` to reset all changes made to the Dock
`./dock-spacer.sh -h` for help.
To remove a spacer, just drag it out of the dock.
# License
Apache license 2.0. see [License](LICENSE) file.