blob: 18e3ac50762f9272bcaeba7792d2fcc1ccd6c2f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if [ "$(uname)" = "Darwin" ]; then
if [ "$1" = "Stop" ]; then
message="Task completed"
sound=Glass
else
message="$(jq '.message')"
sound=Funk
fi
osascript -e "display notification $message with title \"Claude Code\" sound name \"$sound\""
else
if [ "$1" = "Stop" ]; then
message="Task completed"
else
message="$(jq '.message')"
fi
notify-send "Claude Code" "$message"
fi
|