diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-17 11:07:32 +0100 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-17 11:07:32 +0100 |
| commit | 95056eacdff97a710129bbb29e707ab83f5faa72 (patch) | |
| tree | ef8fe50947e506859bc0190bd777c50f2f666453 /config/tmux | |
| parent | c0771c839df57a627ceb21bd398752ba2b1ed3f1 (diff) | |
theme-gen: derive tmux and ghostty colours for any theme
`theme --set <mode> <name>` needs a tmux conf and a ghostty colour file that
alacritty-format themes do not provide, so such a name fell back to the
generic dark/light tmux colours and left ghostty unchanged, exiting 0.
bin/theme-gen reads a theme in alacritty .toml format (by alacritty-theme
checkout name or path) or Ghostty's bundled `palette = N=#hex` format, and
writes config/tmux/colors/<name>.conf and config/ghostty/colors/<name>, plus
config/alacritty/colors/<name>.toml for a ghostty-format source.
Generated with it: sonokai, solarized_osaka_night, kanagawabones and
dracula_plus_high_contrast, with nvim stand-ins for the three that have no
nvim port installed.
Parsed keys go through eval, so only plain section.key names and hex values
are accepted: a theme file could otherwise run commands.
From dot request 20261017-110255-work-laptop-48c22c.
Diffstat (limited to 'config/tmux')
| -rw-r--r-- | config/tmux/colors/dracula_plus_high_contrast.conf | 6 | ||||
| -rw-r--r-- | config/tmux/colors/kanagawabones.conf | 6 | ||||
| -rw-r--r-- | config/tmux/colors/solarized_osaka_night.conf | 6 | ||||
| -rw-r--r-- | config/tmux/colors/sonokai.conf | 6 |
4 files changed, 24 insertions, 0 deletions
diff --git a/config/tmux/colors/dracula_plus_high_contrast.conf b/config/tmux/colors/dracula_plus_high_contrast.conf new file mode 100644 index 0000000..e4360a8 --- /dev/null +++ b/config/tmux/colors/dracula_plus_high_contrast.conf @@ -0,0 +1,6 @@ +# dracula_plus_high_contrast (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Dracula+ High Contrast) +set -g status-style fg=#f8f8f2,bg=default +set -g message-style fg=#14141a,bg=#f8f8f2,fill=#f8f8f2 +set -g pane-border-style fg=#9ba1b5 +set -g pane-active-border-style fg=#82aaff +set -g window-status-current-style fg=#f8f8f2 diff --git a/config/tmux/colors/kanagawabones.conf b/config/tmux/colors/kanagawabones.conf new file mode 100644 index 0000000..08bd912 --- /dev/null +++ b/config/tmux/colors/kanagawabones.conf @@ -0,0 +1,6 @@ +# kanagawabones (generated by theme-gen from /Applications/Ghostty.app/Contents/Resources/ghostty/themes/Kanagawabones) +set -g status-style fg=#ddd8bb,bg=default +set -g message-style fg=#1f1f28,bg=#ddd8bb,fill=#ddd8bb +set -g pane-border-style fg=#49495e +set -g pane-active-border-style fg=#7eb3c9 +set -g window-status-current-style fg=#ddd8bb diff --git a/config/tmux/colors/solarized_osaka_night.conf b/config/tmux/colors/solarized_osaka_night.conf new file mode 100644 index 0000000..456537a --- /dev/null +++ b/config/tmux/colors/solarized_osaka_night.conf @@ -0,0 +1,6 @@ +# solarized_osaka_night (generated by theme-gen from config/alacritty/colors/solarized_osaka_night.toml) +set -g status-style fg=#839496,bg=default +set -g message-style fg=#001a1d,bg=#839496,fill=#839496 +set -g pane-border-style fg=#4c4c4c +set -g pane-active-border-style fg=#268bd2 +set -g window-status-current-style fg=#839496 diff --git a/config/tmux/colors/sonokai.conf b/config/tmux/colors/sonokai.conf new file mode 100644 index 0000000..2d71aba --- /dev/null +++ b/config/tmux/colors/sonokai.conf @@ -0,0 +1,6 @@ +# sonokai (generated by theme-gen from /Users/sz/src/alacritty/alacritty-theme/themes/sonokai.toml) +set -g status-style fg=#e2e2e3,bg=default +set -g message-style fg=#2c2e34,bg=#e2e2e3,fill=#e2e2e3 +set -g pane-border-style fg=#7f8490 +set -g pane-active-border-style fg=#76cce0 +set -g window-status-current-style fg=#e2e2e3 |
