diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-17 18:20:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-17 18:20:57 +0900 |
| commit | f906c8cc4b24927c64dd9012b4d750c2501c9342 (patch) | |
| tree | 5563639c86babbc570894b2dabfeb1d22693207c | |
| parent | a91065f99b8676b0f443a11f25c3d243e3417034 (diff) | |
| download | dotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.tar.gz dotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.tar.zst dotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.zip | |
claude-code: play sound on notification in Linux
| -rwxr-xr-x | bin/__claude-code-notify | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
