Sync pi theme with Ghostty terminal colors
npm install pi-ghostty-theme-syncSync pi theme with your active Ghostty terminal colors.
On startup, the extension runs ghostty +show-config, generates a pi theme, and switches pi to it.
``bash`
pi install npm:pi-ghostty-theme-sync
(Optional, try without installing):
`bash`
pi -e npm:pi-ghostty-theme-sync
- Reads: background, foreground, and palette[0..15] from Ghostty.bg/fg + palette[0..15]
- Computes a hash of .~/.pi/agent/themes/ghostty-sync-
- Writes a theme to: .ghostty-sync-*.json
- Removes older files (keeps only the current one).ghostty-sync-
- Sets pi theme to .
Uses ANSI slot semantics:
- palette[1] → errorpalette[2]
- → successpalette[3]
- → warningpalette[4]
- → link (links/borders)palette[5]
- → accent (primary highlight)palette[6]
- → accentAlt (secondary highlight)
Neutrals (muted, dim, subtle borders) are derived from background + foreground instead of trusting palette[0]/palette[8].
- Ghostty installed and ghostty available in PATH`
MIT