Files
agent-skills/hooks/tmux-attention.sh
T
naps62 7cb03f8796 feat: ship the remaining hooks and aoe-register-remote
settings.json references git-autoupdate, tmux-attention, tmux-reset and
scripts/aoe-register-remote.py, but they only existed as untracked files
on one machine, so hooks failed everywhere else.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 08:56:44 +00:00

12 lines
434 B
Bash
Executable File

#!/bin/bash
# Highlight tmux window when Claude Code needs attention
# Called by Claude Code's Notification hook
[ -z "$TMUX" ] && exit 0
TARGET=$(tmux display-message -p '#{session_name}:#{window_index}')
# Set window to attention style (amber/yellow)
tmux set-window-option -t "$TARGET" window-status-current-style "fg=#1a1b26,bg=#e0af68,bold"
tmux set-window-option -t "$TARGET" window-status-style "fg=#1a1b26,bg=#e0af68,bold"