Skip to content

fix(ghostty): use Ghostty's bundled iTerm2 Solarized, drop vendored themes - #76

Open
catinspace-au wants to merge 1 commit into
mainfrom
fix/ghostty-bundled-solarized
Open

catinspace-au wants to merge 1 commit into
mainfrom
fix/ghostty-bundled-solarized

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

Vendored theme files only resolve from the XDG themes dir. macOS reads its config from ~/Library/Application Support/com.mitchellh.ghostty/ but resolves a bare theme name only from ~/.config/ghostty/themes/ and the app bundle, so themes deployed beside the macOS config were never found and Ghostty silently fell back to its default dark theme.

Switches to the iTerm2 Solarized pair that ships inside Ghostty itself on both platforms (app bundle on macOS, /usr/share/ghostty/themes owned by the ghostty package on Linux, verified with dpkg -S). No OS package, nothing vendored. Ghostty has no system-wide config path, so this stays per-user by design.

The bundled variant is also strictly better: canonical Solarized sets ANSI 8 to the exact dark background (invisible bright-black) and ANSI 7 too close to the light background. The iTerm2 variant lifts both off (#335e69 / #bbb5a2) and is otherwise identical.

Also fixes the Linux heal task, which matched the new theme line and would have reverted it to the vendored names on every run.

Verification

  • ansible-lint passes (production profile); yamllint errors reduced 3 -> 2, both pre-existing
  • Applied to a real Ubuntu 26.04 box: ghostty +validate-config silent with nothing vendored left, background measured #002a36 = Solarized Dark

…hemes

Vendored theme files only resolve from the XDG themes dir. macOS reads its
config from ~/Library/Application Support/com.mitchellh.ghostty/ but resolves
a bare theme name only from ~/.config/ghostty/themes/ and the app bundle, so
themes deployed beside the macOS config were never found and Ghostty silently
fell back to its default dark theme.

Switch to the iTerm2 Solarized pair that ships inside Ghostty itself on both
platforms (app bundle on macOS, /usr/share/ghostty/themes owned by the ghostty
package on Linux). No OS package, nothing vendored.

The bundled variant is also strictly better: canonical Solarized sets ANSI 8 to
the exact dark background (invisible bright-black) and ANSI 7 too close to the
light background. The iTerm2 variant lifts both off.

Also fixes the Linux heal task, which matched the new theme line and would have
reverted it to the vendored names on every run, and removes the now-dead
vendored files from existing installs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant