1

Modules/Kitty: Extract color schemes into variables

This commit is contained in:
2025-07-06 03:06:52 +02:00
parent 270b62c65c
commit a135d42f12

View File

@ -27,7 +27,10 @@ in {
"kitty_mod+l" = "next_layout"; "kitty_mod+l" = "next_layout";
}; };
settings = { settings = let
light = color.hex.light;
dark = color.hex.dark;
in {
editor = config.home.sessionVariables.EDITOR; editor = config.home.sessionVariables.EDITOR;
scrollback_lines = 10000; scrollback_lines = 10000;
window_padding_width = 10; # Looks stupid with editors if bg doesn't match window_padding_width = 10; # Looks stupid with editors if bg doesn't match
@ -48,74 +51,74 @@ in {
# #
# The basic colors # The basic colors
foreground = "#${color.hex.light.text}"; background = "#${light.base}";
background = "#${color.hex.light.base}"; foreground = "#${light.text}";
selection_foreground = "#${color.hex.light.base}"; selection_foreground = "#${light.base}";
selection_background = "#${color.hex.light.rosewater}"; selection_background = "#${light.rosewater}";
# Cursor colors # Cursor colors
cursor = "#${color.hex.light.rosewater}"; cursor = "#${light.rosewater}";
cursor_text_color = "#${color.hex.light.base}"; cursor_text_color = "#${light.base}";
# URL underline color when hovering with mouse # URL underline color when hovering with mouse
url_color = "#${color.hex.light.rosewater}"; url_color = "#${light.rosewater}";
# Kitty window border colors # Kitty window border colors
active_border_color = "#${color.hex.light.lavender}"; active_border_color = "#${light.lavender}";
inactive_border_color = "#${color.hex.light.overlay0}"; inactive_border_color = "#${light.overlay0}";
bell_border_color = "#${color.hex.light.yellow}"; bell_border_color = "#${light.yellow}";
# OS Window titlebar colors # OS Window titlebar colors
wayland_titlebar_color = "system"; wayland_titlebar_color = "system";
macos_titlebar_color = "system"; macos_titlebar_color = "system";
# Tab bar colors # Tab bar colors
active_tab_foreground = "#${color.hex.dark.base}"; active_tab_foreground = "#${dark.base}";
active_tab_background = "#${color.hex.dark.lavender}"; active_tab_background = "#${dark.lavender}";
inactive_tab_foreground = "#${color.hex.dark.text}"; inactive_tab_foreground = "#${dark.text}";
inactive_tab_background = "#${color.hex.dark.crust}"; inactive_tab_background = "#${dark.crust}";
tab_bar_background = "#${color.hex.light.base}"; tab_bar_background = "#${light.base}";
# Color for marks (marked text in the terminal) # Color for marks (marked text in the terminal)
mark1_foreground = "#${color.hex.light.base}"; mark1_foreground = "#${light.base}";
mark1_background = "#${color.hex.light.lavender}"; mark1_background = "#${light.lavender}";
mark2_foreground = "#${color.hex.light.base}"; mark2_foreground = "#${light.base}";
mark2_background = "#${color.hex.light.mauve}"; mark2_background = "#${light.mauve}";
mark3_foreground = "#${color.hex.light.base}"; mark3_foreground = "#${light.base}";
mark3_background = "#${color.hex.light.sapphire}"; mark3_background = "#${light.sapphire}";
# The 16 terminal colors # The 16 terminal colors
# black # black
color0 = "#${color.hex.light.subtext1}"; color0 = "#${light.subtext1}";
color8 = "#${color.hex.light.subtext0}"; color8 = "#${light.subtext0}";
# red # red
color1 = "#${color.hex.light.red}"; color1 = "#${light.red}";
color9 = "#${color.hex.light.red}"; color9 = "#${light.red}";
# green # green
color2 = "#${color.hex.light.green}"; color2 = "#${light.green}";
color10 = "#${color.hex.light.green}"; color10 = "#${light.green}";
# yellow # yellow
color3 = "#${color.hex.light.yellow}"; color3 = "#${light.yellow}";
color11 = "#${color.hex.light.yellow}"; color11 = "#${light.yellow}";
# blue # blue
color4 = "#${color.hex.light.blue}"; color4 = "#${light.blue}";
color12 = "#${color.hex.light.blue}"; color12 = "#${light.blue}";
# magenta # magenta
color5 = "#${color.hex.light.pink}"; color5 = "#${light.pink}";
color13 = "#${color.hex.light.pink}"; color13 = "#${light.pink}";
# cyan # cyan
color6 = "#${color.hex.light.teal}"; color6 = "#${light.teal}";
color14 = "#${color.hex.light.teal}"; color14 = "#${light.teal}";
# white # white
color7 = "#${color.hex.light.surface2}"; color7 = "#${light.surface2}";
color15 = "#${color.hex.light.surface1}"; color15 = "#${light.surface1}";
}; };
}; };
}; };