kitty terminal theme config
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# kitty
|
||||
|
||||
Config for the [kitty](https://sw.kovidgoyal.net/kitty/) terminal.
|
||||
`install.sh` does not deploy this — it shells out to `pacman`,
|
||||
`sha256sum`, `hyprctl`, and `omarchy-theme-set`, so it only runs where
|
||||
Omarchy does. Apply these by hand (or symlink them, below).
|
||||
|
||||
Two files, mirroring how kitty is set up on the Omarchy side:
|
||||
|
||||
- `kitty.conf` — fonts, window, tabs, cursor, and platform options.
|
||||
Ends up as one `include current-theme.conf` plus real settings; kitty's
|
||||
own 125KB commented reference config is deliberately not checked in.
|
||||
- `current-theme.conf` — the active palette, currently **flats**.
|
||||
|
||||
## Theming
|
||||
|
||||
Under Omarchy, `omarchy-theme-set` regenerates the terminal palette from
|
||||
`themes/<name>/colors.toml` whenever the theme changes. Nothing does that
|
||||
here, so `current-theme.conf` is a hand translation of that same toml
|
||||
into kitty's config syntax — meaning it does **not** track edits to
|
||||
`themes/flats/colors.toml`.
|
||||
|
||||
To switch themes, retranslate the 22 keys from another
|
||||
`themes/<name>/colors.toml`. The mapping is direct (`background` →
|
||||
`background`, `color0` → `color0`, …), with the kitty-only extras
|
||||
(borders, tab bar, marks, `cursor_text_color`, `url_color`) derived from
|
||||
`accent` and `background`.
|
||||
|
||||
## Fonts
|
||||
|
||||
`kitty.conf` expects **JetBrainsMono Nerd Font**:
|
||||
|
||||
```bash
|
||||
brew install --cask font-jetbrains-mono-nerd-font
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
# Symlink (config tracks the repo — recommended)
|
||||
ln -sf "$PWD/kitty/kitty.conf" ~/.config/kitty/kitty.conf
|
||||
ln -sf "$PWD/kitty/current-theme.conf" ~/.config/kitty/current-theme.conf
|
||||
|
||||
# Or copy, if you'd rather edit the live files independently
|
||||
cp kitty/*.conf ~/.config/kitty/
|
||||
```
|
||||
|
||||
Reload a running kitty with `ctrl+cmd+,`. New windows pick up changes on
|
||||
their own.
|
||||
@@ -0,0 +1,83 @@
|
||||
# vim:ft=kitty
|
||||
|
||||
## name: Flats
|
||||
## upstream: themes/flats/colors.toml
|
||||
## blurb: Dark theme with a soft blue accent. Hand-translated from the
|
||||
## Omarchy colors.toml, since macOS has no omarchy-theme-set.
|
||||
|
||||
|
||||
# The basic colors
|
||||
foreground #cbd2d9
|
||||
background #0f1012
|
||||
selection_foreground #0f1012
|
||||
selection_background #7babe3
|
||||
|
||||
# Cursor colors
|
||||
cursor #cbd2d9
|
||||
cursor_text_color #0f1012
|
||||
|
||||
# URL underline color when hovering with mouse
|
||||
url_color #7babe3
|
||||
|
||||
# Kitty window border colors
|
||||
active_border_color #7babe3
|
||||
inactive_border_color #949494
|
||||
bell_border_color #d58638
|
||||
|
||||
# OS Window titlebar colors
|
||||
wayland_titlebar_color system
|
||||
macos_titlebar_color system
|
||||
|
||||
# Tab bar colors
|
||||
active_tab_foreground #0f1012
|
||||
active_tab_background #7babe3
|
||||
inactive_tab_foreground #cbd2d9
|
||||
inactive_tab_background #0f1012
|
||||
tab_bar_background #000000
|
||||
|
||||
# Colors for marks (marked text in the terminal)
|
||||
mark1_foreground #0f1012
|
||||
mark1_background #7babe3
|
||||
mark2_foreground #0f1012
|
||||
mark2_background #38d586
|
||||
mark3_foreground #0f1012
|
||||
mark3_background #d58638
|
||||
|
||||
# The 16 terminal colors
|
||||
#
|
||||
# Note: flats maps the ANSI slots unconventionally — color4 (blue) holds a
|
||||
# magenta and color6 (cyan) holds the blue, among others. Kept faithful to
|
||||
# colors.toml so both machines render identically; the comments below name
|
||||
# the ANSI slot, not the resulting hue.
|
||||
|
||||
# black
|
||||
color0 #000000
|
||||
color8 #949494
|
||||
|
||||
# red
|
||||
color1 #d53838
|
||||
color9 #d53838
|
||||
|
||||
# green
|
||||
color2 #38d4d5
|
||||
color10 #38d4d5
|
||||
|
||||
# yellow
|
||||
color3 #d58638
|
||||
color11 #d58638
|
||||
|
||||
# blue
|
||||
color4 #d53886
|
||||
color12 #d53886
|
||||
|
||||
# magenta
|
||||
color5 #38d586
|
||||
color13 #38d586
|
||||
|
||||
# cyan
|
||||
color6 #3886d5
|
||||
color14 #3886d5
|
||||
|
||||
# white
|
||||
color7 #d4d4d4
|
||||
color15 #d4d4d4
|
||||
@@ -0,0 +1,71 @@
|
||||
# vim:ft=kitty
|
||||
#
|
||||
# kitty config for macOS. The Arch side of these dotfiles gets its terminal
|
||||
# colors from omarchy-theme-set rewriting the active theme; there is no
|
||||
# omarchy here, so current-theme.conf is checked in alongside this file and
|
||||
# generated by hand from themes/<name>/colors.toml.
|
||||
|
||||
include current-theme.conf
|
||||
|
||||
|
||||
# Fonts
|
||||
font_family JetBrainsMono Nerd Font Regular
|
||||
bold_font JetBrainsMono Nerd Font Bold
|
||||
italic_font JetBrainsMono Nerd Font Italic
|
||||
bold_italic_font JetBrainsMono Nerd Font Bold Italic
|
||||
font_size 14.0
|
||||
adjust_line_height 115%
|
||||
disable_ligatures cursor
|
||||
|
||||
# Use CoreText's glyph rendering rather than kitty's own blending.
|
||||
text_composition_strategy platform
|
||||
|
||||
|
||||
# Window
|
||||
window_padding_width 18
|
||||
hide_window_decorations no
|
||||
background_opacity 1.0
|
||||
background_blur 0
|
||||
confirm_os_window_close 0
|
||||
remember_window_size yes
|
||||
initial_window_width 120c
|
||||
initial_window_height 34c
|
||||
inactive_text_alpha 0.85
|
||||
|
||||
|
||||
# Tabs
|
||||
tab_bar_edge top
|
||||
tab_bar_style powerline
|
||||
tab_powerline_style slanted
|
||||
tab_bar_min_tabs 2
|
||||
tab_title_template "{index} {title}"
|
||||
|
||||
|
||||
# Cursor
|
||||
cursor_shape beam
|
||||
cursor_beam_thickness 1.6
|
||||
cursor_blink_interval 0
|
||||
cursor_trail 0
|
||||
|
||||
|
||||
# Performance
|
||||
sync_to_monitor yes
|
||||
repaint_delay 8
|
||||
input_delay 2
|
||||
wheel_scroll_multiplier 3.0
|
||||
|
||||
|
||||
# Bell
|
||||
enable_audio_bell no
|
||||
visual_bell_duration 0.1
|
||||
|
||||
|
||||
# Scrollback
|
||||
scrollback_lines 20000
|
||||
|
||||
|
||||
# macOS specific
|
||||
macos_option_as_alt yes
|
||||
macos_quit_when_last_window_closed yes
|
||||
macos_show_window_title_in all
|
||||
macos_traditional_fullscreen no
|
||||
Reference in New Issue
Block a user