unixorn/tumult.plugin.zsh

View on GitHub
bin/disable-bouncing-dock-icons

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
#
# Disable icon bouncing in the dock
#
# Copyright 2020, Joe Block <jpb@unixorn.net>

set -o pipefail

if [[ "$(uname -s)" != 'Darwin' ]]; then
  echo 'Sorry, this script only works on macOS'
  exit 1
fi

defaults write com.apple.dock no-bouncing -bool TRUE
killall Dock