diff --git a/dot_claude/settings.json b/dot_claude/settings.json index 7b4ad55..d9b4392 100644 --- a/dot_claude/settings.json +++ b/dot_claude/settings.json @@ -17,6 +17,15 @@ "command": "~/.claude/statusline.sh", "padding": 1 }, + "hooks": { + "Notification": [ + { + "hooks": [ + { "type": "command", "command": "afplay /System/Library/Sounds/Glass.aiff" } + ] + } + ] + }, "permissions": { "allow": [ "Bash(awk:*)", diff --git a/dot_config/tmux/tmux.conf.tmpl b/dot_config/tmux/tmux.conf.tmpl index 42f3b9c..8eb6199 100644 --- a/dot_config/tmux/tmux.conf.tmpl +++ b/dot_config/tmux/tmux.conf.tmpl @@ -50,6 +50,13 @@ set -sa terminal-overrides ",xterm*:Tc" #set -ag terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # colored underscores #set -ag terminal-overrides ",alacritty:RGB" +# Claude Code: pass through OSC sequences (notifications, progress bar) and +# distinguish Shift+Enter from plain Enter so newline insertion works. +# https://code.claude.com/docs/en/terminal-config#configure-tmux +set -g allow-passthrough on +set -s extended-keys on +set -as terminal-features 'xterm*:extkeys' + # index from 1 instead of 0 set -g base-index 1 setw -g pane-base-index 1