106 lines
3.3 KiB
Nix
Executable File
106 lines
3.3 KiB
Nix
Executable File
{ lib, config, namespace, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.${namespace}.desktop.extra.kitty;
|
|
in
|
|
{
|
|
imports = [ ./options.nix ];
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.kitty = {
|
|
enable = true;
|
|
shellIntegration.enableZshIntegration = true;
|
|
|
|
font = {
|
|
name = settings.fontName;
|
|
package = settings.fontPackage;
|
|
size = settings.fontSize;
|
|
};
|
|
|
|
settings = {
|
|
bold_font = "auto";
|
|
italic_font = "auto";
|
|
bold_italic_font = "auto";
|
|
mouse_hide_wait = "2.0";
|
|
cursor_shape = "block";
|
|
url_style = "dotted";
|
|
confirm_os_window_close = "0";
|
|
background_opacity = "0.85";
|
|
|
|
# The basic colors
|
|
foreground = settings.theme.snowStorm.nord6;
|
|
background = settings.theme.polarNight.nord0;
|
|
selection_foreground = settings.theme.polarNight.nord0;
|
|
selection_background = settings.theme.aurora.nord15;
|
|
|
|
# Cursor colors
|
|
cursor = settings.theme.aurora.nord15;
|
|
cursor_text_color = settings.theme.polarNight.nord0;
|
|
|
|
# URL underline color when hovering with mouse
|
|
url_color = settings.theme.aurora.nord15;
|
|
|
|
# Kitty window border colors
|
|
active_border_color = settings.theme.frost.nord10;
|
|
inactive_border_color = settings.theme.polarNight.nord1;
|
|
bell_border_color = settings.theme.aurora.nord13;
|
|
|
|
# OS Window titlebar colors
|
|
wayland_titlebar_color = settings.theme.polarNight.nord0;
|
|
macos_titlebar_color = settings.theme.polarNight.nord0;
|
|
|
|
# Tab bar colors
|
|
active_tab_foreground = settings.theme.polarNight.nord3;
|
|
active_tab_background = settings.theme.aurora.nord15;
|
|
inactive_tab_foreground = settings.theme.snowStorm.nord6;
|
|
inactive_tab_background = settings.theme.polarNight.nord1;
|
|
tab_bar_background = settings.theme.polarNight.nord3;
|
|
|
|
# Colors for marks (marked text in the terminal)
|
|
mark1_foreground = settings.theme.polarNight.nord0;
|
|
mark1_background = settings.theme.frost.nord10;
|
|
mark2_foreground = settings.theme.polarNight.nord0;
|
|
mark2_background = settings.theme.aurora.nord15;
|
|
mark3_foreground = settings.theme.polarNight.nord0;
|
|
mark3_background = settings.theme.frost.nord8;
|
|
|
|
# The 16 terminal colors
|
|
|
|
# black
|
|
color0 = settings.theme.polarNight.nord0;
|
|
|
|
# Autosuggestion
|
|
color8 = settings.theme.frost.nord10;
|
|
|
|
# red
|
|
color1 = settings.theme.aurora.nord11;
|
|
color9 = settings.theme.aurora.nord11;
|
|
|
|
# green
|
|
color2 = settings.theme.aurora.nord14;
|
|
color10 = settings.theme.aurora.nord14;
|
|
|
|
# yellow
|
|
color3 = settings.theme.aurora.nord13;
|
|
color11 = settings.theme.aurora.nord13;
|
|
|
|
# blue
|
|
color4 = settings.theme.frost.nord10;
|
|
color12 = settings.theme.frost.nord10;
|
|
|
|
# magenta
|
|
color5 = settings.theme.aurora.nord15;
|
|
color13 = settings.theme.aurora.nord15;
|
|
|
|
# cyan
|
|
color6 = settings.theme.frost.nord8;
|
|
color14 = settings.theme.frost.nord8;
|
|
|
|
# white
|
|
color7 = settings.theme.snowStorm.nord5;
|
|
color15 = settings.theme.snowStorm.nord4;
|
|
};
|
|
};
|
|
};
|
|
}
|