Skip to content

Instantly share code, notes, and snippets.

@daslicht
Last active May 21, 2021 13:03
Show Gist options
  • Save daslicht/05e7b6038d5518e5265fe41d83c36071 to your computer and use it in GitHub Desktop.
Save daslicht/05e7b6038d5518e5265fe41d83c36071 to your computer and use it in GitHub Desktop.
Toggle macOS dock behaviour, (increase hidden autohide show delay)
if [[ "$(defaults read com.apple.dock autohide)" -eq "1" ]]; then
# Restore Dock
defaults write com.apple.dock autohide -bool false && killall Dock
defaults delete com.apple.dock autohide-delay && killall Dock
defaults write com.apple.dock no-bouncing -bool FALSE && killall Dock
exit
fi
# Hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock
defaults write com.apple.dock autohide-delay -float 1000 && killall Dock
defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment