aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-17 18:20:57 +0900
committernsfisis <nsfisis@gmail.com>2025-07-17 18:20:57 +0900
commitf906c8cc4b24927c64dd9012b4d750c2501c9342 (patch)
tree5563639c86babbc570894b2dabfeb1d22693207c /bin
parenta91065f99b8676b0f443a11f25c3d243e3417034 (diff)
downloaddotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.tar.gz
dotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.tar.zst
dotfiles-f906c8cc4b24927c64dd9012b4d750c2501c9342.zip
claude-code: play sound on notification in Linux
Diffstat (limited to 'bin')
-rwxr-xr-xbin/__claude-code-notify7
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