Skip to content

Instantly share code, notes, and snippets.

@viktorklang
Created May 27, 2014 12:15
Show Gist options
  • Save viktorklang/e802c39d082d63a1563e to your computer and use it in GitHub Desktop.
Save viktorklang/e802c39d082d63a1563e to your computer and use it in GitHub Desktop.
"Permanently" hide the Dock
#!/bin/bash
#########################################################################################################################
# MIT License
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#########################################################################################################################
# WARNING: USE AT OWN RISK!! YMMV
defaults write com.apple.dock autohide -int 1
defaults write com.apple.dock autohide-delay -float 999999999
defaults write com.apple.dock autohide-delay-time-modifier -int 999999999
defaults write com.apple.dock tilesize -int 0
killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment