53 lines
2.3 KiB
Markdown
53 lines
2.3 KiB
Markdown
---
|
|
name: ghostty-deep-black-green-theme
|
|
description: "Apply and configure the Ghostty deep black-green terminal theme on macOS: background #071f16, default light text, Sarasa Mono SC at 15pt. Use when the user asks to set up or replicate this Ghostty color scheme on a local Mac or a remote Mac over SSH, or to fix Ghostty background/font configuration on macOS."
|
|
---
|
|
|
|
# Ghostty Deep Black-Green Theme
|
|
|
|
## Overview
|
|
|
|
Apply this scheme to Ghostty on macOS:
|
|
|
|
- Background: `#071f16` (deep black-green), solid — do not add opacity/blur unless asked
|
|
- Text: keep Ghostty default (light) — dark background makes it readable; do not set `foreground` unless the user explicitly wants a color
|
|
- Font: `Sarasa Mono SC` (English Iosevka + Chinese Source Han Sans, monospaced-aligned)
|
|
- Font size: `15`
|
|
|
|
## Config
|
|
|
|
```ini
|
|
background = #071f16
|
|
font-family = "Sarasa Mono SC"
|
|
grapheme-width-method = unicode
|
|
font-size = 15
|
|
```
|
|
|
|
## macOS config files
|
|
|
|
Ghostty on macOS reads multiple config files; later/higher-priority files override earlier ones:
|
|
|
|
1. `~/.config/ghostty/config`
|
|
2. `~/Library/Application Support/com.mitchellh.ghostty/config`
|
|
3. `~/Library/Application Support/com.mitchellh.ghostty/config.ghostty`
|
|
|
|
The Library files take priority over `~/.config/ghostty/config`, and `config.ghostty` may be the actual effective file. Before applying, list and inspect all existing files. Verify effective settings with:
|
|
|
|
```sh
|
|
/Applications/Ghostty.app/Contents/MacOS/ghostty +show-config | grep -E '^(background|font-family|font-size|foreground|theme)'
|
|
```
|
|
|
|
If a higher-priority file still overrides `background` or `font-size`, remove the conflicting lines from that file (back it up first).
|
|
|
|
## Apply
|
|
|
|
1. Ensure `Sarasa Mono SC` is installed in `~/Library/Fonts` (file `Sarasa-SuperTTC.ttc`); if missing, copy it from another Mac with `sshpass -p '<password>' scp ...` (~793 MB) or download it.
|
|
2. Write the config lines into the effective config file(s).
|
|
3. Reload config with `Cmd+Shift+,`, or restart Ghostty if a setting does not apply.
|
|
|
|
## Apply to a remote Mac over SSH
|
|
|
|
1. Back up the remote config first: `cp "<config>" "<config>.bak.$(date +%Y%m%d)"`.
|
|
2. Pull it locally with `sshpass -p '<password>' scp`, edit with `apply_patch`, push it back with `scp`.
|
|
3. Verify the remote effective config, then ask the user to reload/restart Ghostty.
|