aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/__claude-code-notify
blob: a1bdec88712eacfd1fe5411fcc2af1761186dbda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

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
    notify-send "Claude Code" "$message"
fi