Kitty: Use colors from color HM module
This commit is contained in:
@ -1,15 +1,14 @@
|
|||||||
# TODO: Expose some settings
|
# TODO: Expose some settings
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
nixosConfig,
|
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with mylib.modules; let
|
with mylib.modules; let
|
||||||
cfg = config.modules.kitty;
|
cfg = config.modules.kitty;
|
||||||
|
color = config.modules.color;
|
||||||
# cfgnv = config.modules.neovim;
|
# cfgnv = config.modules.neovim;
|
||||||
in {
|
in {
|
||||||
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
options.modules.kitty = import ./options.nix {inherit lib mylib;};
|
||||||
@ -20,8 +19,7 @@ in {
|
|||||||
shellIntegration.enableFishIntegration = true;
|
shellIntegration.enableFishIntegration = true;
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
# package = pkgs.victor-mono;
|
name = "${color.font}";
|
||||||
name = "JetBrainsMono Nerd Font Mono";
|
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -32,9 +30,9 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
editor = "hx";
|
editor = config.home.sessionVariables.EDITOR;
|
||||||
scrollback_lines = 10000;
|
scrollback_lines = 10000;
|
||||||
window_padding_width = 10; # Looks stupid with helix if bg doesn't match
|
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
||||||
# hide_window_decorations = "yes";
|
# hide_window_decorations = "yes";
|
||||||
enabled_layouts = "grid,vertical,horizontal";
|
enabled_layouts = "grid,vertical,horizontal";
|
||||||
|
|
||||||
@ -44,82 +42,82 @@ in {
|
|||||||
tab_bar_min_tabs = 1;
|
tab_bar_min_tabs = 1;
|
||||||
tab_bar_edge = "bottom";
|
tab_bar_edge = "bottom";
|
||||||
tab_bar_style = "powerline";
|
tab_bar_style = "powerline";
|
||||||
tab_powerline_style = "slanted";
|
tab_powerline_style = "round";
|
||||||
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
||||||
|
|
||||||
#
|
#
|
||||||
# Catppuccin Light Theme
|
# Color Theme
|
||||||
#
|
#
|
||||||
|
|
||||||
# The basic colors
|
# The basic colors
|
||||||
foreground = "#4C4F69";
|
foreground = "#${color.light.text}";
|
||||||
background = "#EFF1F5";
|
background = "#${color.light.base}";
|
||||||
selection_foreground = "#EFF1F5";
|
selection_foreground = "#${color.light.base}";
|
||||||
selection_background = "#DC8A78";
|
selection_background = "#${color.light.rosewater}";
|
||||||
|
|
||||||
# Cursor colors
|
# Cursor colors
|
||||||
cursor = "#DC8A78";
|
cursor = "#${color.light.rosewater}";
|
||||||
cursor_text_color = "#EFF1F5";
|
cursor_text_color = "#${color.light.base}";
|
||||||
|
|
||||||
# URL underline color when hovering with mouse
|
# URL underline color when hovering with mouse
|
||||||
url_color = "#DC8A78";
|
url_color = "#${color.light.rosewater}";
|
||||||
|
|
||||||
# Kitty window border colors
|
# Kitty window border colors
|
||||||
active_border_color = "#7287FD";
|
active_border_color = "#${color.light.lavender}";
|
||||||
inactive_border_color = "#9CA0B0";
|
inactive_border_color = "#${color.light.overlay0}";
|
||||||
bell_border_color = "#DF8E1D";
|
bell_border_color = "#${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 = "#EFF1F5";
|
active_tab_foreground = "#${color.light.base}";
|
||||||
active_tab_background = "#8839EF";
|
active_tab_background = "#${color.light.mauve}";
|
||||||
inactive_tab_foreground = "#4C4F69";
|
inactive_tab_foreground = "#${color.light.text}";
|
||||||
inactive_tab_background = "#9CA0B0";
|
inactive_tab_background = "#${color.light.overlay0}";
|
||||||
tab_bar_background = "#BCC0CC";
|
tab_bar_background = "#${color.light.surface1}";
|
||||||
|
|
||||||
# Colors for marks (marked text in the terminal)
|
# Color for marks (marked text in the terminal)
|
||||||
mark1_foreground = "#EFF1F5";
|
mark1_foreground = "#${color.light.base}";
|
||||||
mark1_background = "#7287fD";
|
mark1_background = "#${color.light.lavender}";
|
||||||
mark2_foreground = "#EFF1F5";
|
mark2_foreground = "#${color.light.base}";
|
||||||
mark2_background = "#8839EF";
|
mark2_background = "#${color.light.mauve}";
|
||||||
mark3_foreground = "#EFF1F5";
|
mark3_foreground = "#${color.light.base}";
|
||||||
mark3_background = "#209FB5";
|
mark3_background = "#${color.light.sapphire}";
|
||||||
|
|
||||||
# The 16 terminal colors
|
# The 16 terminal colors
|
||||||
# black
|
# black
|
||||||
color0 = "#5C5F77";
|
color0 = "#${color.light.subtext1}";
|
||||||
color8 = "#6C6F85";
|
color8 = "#${color.light.subtext0}";
|
||||||
|
|
||||||
# red
|
# red
|
||||||
color1 = "#D20F39";
|
color1 = "#${color.light.red}";
|
||||||
color9 = "#D20F39";
|
color9 = "#${color.light.red}";
|
||||||
|
|
||||||
# green
|
# green
|
||||||
color2 = "#40A02B";
|
color2 = "#${color.light.green}";
|
||||||
color10 = "#40A02B";
|
color10 = "#${color.light.green}";
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
color3 = "#DF8E1D";
|
color3 = "#${color.light.yellow}";
|
||||||
color11 = "#DF8E1D";
|
color11 = "#${color.light.yellow}";
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
color4 = "#1E66F5";
|
color4 = "#${color.light.blue}";
|
||||||
color12 = "#1E66F5";
|
color12 = "#${color.light.blue}";
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
color5 = "#EA76CB";
|
color5 = "#${color.light.pink}";
|
||||||
color13 = "#EA76CB";
|
color13 = "#${color.light.pink}";
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
color6 = "#179299";
|
color6 = "#${color.light.teal}";
|
||||||
color14 = "#179299";
|
color14 = "#${color.light.teal}";
|
||||||
|
|
||||||
# white
|
# white
|
||||||
color7 = "#ACB0BE";
|
color7 = "#${color.light.surface2}";
|
||||||
color15 = "#BCC0CC";
|
color15 = "#${color.light.surface1}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user