From f906c8cc4b24927c64dd9012b4d750c2501c9342 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 17 Jul 2025 18:20:57 +0900 Subject: claude-code: play sound on notification in Linux --- bin/__claude-code-notify | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/__claude-code-notify') diff --git a/bin/__claude-code-notify b/bin/__claude-code-notify index 1495698..2d76b99 100755 --- a/bin/__claude-code-notify +++ b/bin/__claude-code-notify @@ -13,5 +13,10 @@ if [ "$(uname)" = "Darwin" ]; then -e 'end run' \ -- "$message" "Claude Code" "$sound" else - notify-send "Claude Code" "$message" + if [ "$1" = "Stop" ]; then + sound=complete + else + sound=bell + fi + notify-send "Claude Code" "$message" --hint "string:sound-name:$sound" fi -- cgit v1.2.3-70-g09d2