#!/usr/bin/env bash message="$(jq -r '.message // "Task completed"')" if [ "$(uname)" = "Darwin" ]; then if [ "$1" = "Stop" ]; then sound=Glass else sound=Funk fi osascript \ -e 'on run argv' \ -e 'display notification (item 1 of argv) with title (item 2 of argv) sound name (item 3 of argv)' \ -e 'end run' \ -- "$message" "Claude Code" "$sound" else if [ "$1" = "Stop" ]; then sound=complete else sound=bell fi notify-send "Claude Code" "$message" --hint "string:sound-name:$sound" fi