Get an audible sound and dock icon bounce every time Claude finishes responding.
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "~/.claude/stop-sound.sh",
"timeout": 5000
}
]
}
]
}
}If you already have other hooks in your settings, just add the "Stop" entry alongside them.
#!/bin/bash
HOOK_INPUT=$(cat)
HOOK_EVENT=$(echo "$HOOK_INPUT" | grep -o '"hook_event_name":"[^"]*"' | cut -d'"' -f4)
if [ "$HOOK_EVENT" = "Stop" ]; then
afplay /System/Library/Sounds/Glass.aiff &
printf '\a' > /dev/tty 2>/dev/null
fichmod +x ~/.claude/stop-sound.sh- iTerm2: Preferences > Profiles > Terminal > check "Bounce Dock Icon"
- Terminal.app: Preferences > Profiles > Advanced > check "Bounce dock icon"
afplayplays the sound (macOS only). Change the sound file path to use a different sound.printf '\a'sends the terminal bell character, which triggers the dock bounce.- Available sounds are in
/System/Library/Sounds/(Glass, Ping, Pop, Tink, etc.).