add 5 new hook sound mappings — TaskCreated, StopFailure, CwdChanged, FileChanged, PermissionDenied

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Shayan Rais
2026-04-04 18:34:13 +05:00
parent cbd0cc37f2
commit ec967be1de
+7 -2
View File
@@ -3,7 +3,7 @@
Claude Code Hook Handler Claude Code Hook Handler
============================================= =============================================
This script handles events from Claude Code and plays sounds for different hook events. This script handles events from Claude Code and plays sounds for different hook events.
Supports all 22 Claude Code hooks: https://code.claude.com/docs/en/hooks Supports all 27 Claude Code hooks: https://code.claude.com/docs/en/hooks
Special handling for git commits: plays pretooluse-git-committing.mp3 Special handling for git commits: plays pretooluse-git-committing.mp3
@@ -44,13 +44,18 @@ HOOK_SOUND_MAP = {
"SessionEnd": "sessionend", "SessionEnd": "sessionend",
"Setup": "setup", "Setup": "setup",
"TeammateIdle": "teammateidle", "TeammateIdle": "teammateidle",
"TaskCreated": "taskcreated",
"TaskCompleted": "taskcompleted", "TaskCompleted": "taskcompleted",
"ConfigChange": "configchange", "ConfigChange": "configchange",
"WorktreeCreate": "worktreecreate", "WorktreeCreate": "worktreecreate",
"WorktreeRemove": "worktreeremove", "WorktreeRemove": "worktreeremove",
"InstructionsLoaded": "instructionsloaded", "InstructionsLoaded": "instructionsloaded",
"Elicitation": "elicitation", "Elicitation": "elicitation",
"ElicitationResult": "elicitationresult" "ElicitationResult": "elicitationresult",
"StopFailure": "stopfailure",
"CwdChanged": "cwdchanged",
"FileChanged": "filechanged",
"PermissionDenied": "permissiondenied"
} }
# ===== AGENT HOOK EVENT TO SOUND FOLDER MAPPING ===== # ===== AGENT HOOK EVENT TO SOUND FOLDER MAPPING =====