Skip to content

Instantly share code, notes, and snippets.

View scarrillo's full-sized avatar
🎯
Focusing

Shawn Carrillo scarrillo

🎯
Focusing
View GitHub Profile
@scarrillo
scarrillo / ghostty-tmux-claude-notifications.txt
Last active June 17, 2026 05:03
Ghostty Tmux Claude Notifications
#!/bin/bash
# Sends an OSC 777 notification to the parent Ghostty terminal via tmux passthrough.
# Walks up the process tree to find the TTY since hooks have no controlling terminal.
#
# Based on: https://github.com/recursechat/agent-workflow/blob/main/ghostty-tab-notifications.md
#
# Expanded on by: https://github.com/scarrillo && Claude
# - Tmux support
# - Requires: tmux `set -g allow-passthrough on`
# - You can set and reload Tmux without interrupting your active sessions.