claude: Add attention-bell hook so tmux flags Claude sessions needing input

Wire Stop and Notification hooks in ~/.claude/settings.json to a new
~/.claude/hooks/attention-bell.sh, which rings the terminal bell in the
session pane so tmux monitor-bell flags the background window.

The hook runs detached (no controlling tty), so it walks its process
ancestry to the claude process and writes the BEL to that pane tty.

Also replaces the dead settings.json symlink (pointed at a now-missing
~/wrk/claude path) with a real tracked file.
This commit is contained in:
2026-07-10 22:48:01 -04:00
parent 8c35889884
commit eee7c8190d
2 changed files with 39 additions and 1 deletions

View File

@@ -1 +0,0 @@
/home/alexion/wrk/claude/settings.json

18
.claude/settings.json Normal file
View File

@@ -0,0 +1,18 @@
{
"hooks": {
"Stop": [
{
"hooks": [
{ "type": "command", "command": "~/.claude/hooks/attention-bell.sh" }
]
}
],
"Notification": [
{
"hooks": [
{ "type": "command", "command": "~/.claude/hooks/attention-bell.sh" }
]
}
]
}
}