nix/home/programs/kitty.nix

93 lines
2.5 KiB
Nix

{
pkgs,
config,
...
}: let
inherit (config.colorscheme) colors;
in {
programs.kitty = {
enable = true;
font.name = "IBM Plex Mono Regular";
font.size = 12;
extraConfig = ''
foreground #CDD6F4
background #1E1E2E
selection_foreground #1E1E2E
selection_background #F5E0DC
cursor #F5E0DC
cursor_text_color #1E1E2E
url_color #F5E0DC
active_border_color #B4BEFE
inactive_border_color #6C7086
bell_border_color #F9E2AF
wayland_titlebar_color system
macos_titlebar_color system
active_tab_foreground #11111B
active_tab_background #CBA6F7
inactive_tab_foreground #CDD6F4
inactive_tab_background #181825
tab_bar_background #11111B
mark1_foreground #1E1E2E
mark1_background #B4BEFE
mark2_foreground #1E1E2E
mark2_background #CBA6F7
mark3_foreground #1E1E2E
mark3_background #74C7EC
color0 #45475A
color8 #585B70
color1 #F38BA8
color9 #F38BA8
color2 #A6E3A1
color10 #A6E3A1
color3 #F9E2AF
color11 #F9E2AF
color4 #89B4FA
color12 #89B4FA
color5 #F5C2E7
color13 #F5C2E7
color6 #94E2D5
color14 #94E2D5
color7 #BAC2DE
color15 #A6ADC8
'';
settings = {
# Font settings
bold_font = "IBM Plex Mono:style=Bold";
italic_font = "IBM Plex Mono:style=Light";
bold_italic_font = "auto";
# Cursor Settings
scrollback_lines = 10000;
wheel_scroll_multiplier = 3;
touch_scroll_multiplier = 2;
scrollback_pager = "${pkgs.page}";
# Mouse settings
mouse_hide_wait = "0.5";
open_url_with = "default";
strip_trailing_spaces = "smart";
focus_follows_mouse = true;
# Perf settings
repaint_delay = 16;
sync_to_monitor = true;
# Terminal Bell settings
enable_audio_bell = false;
# Window settings
hide_window_decorations = true;
# Tab Bar settings
tab_bar_edge = "bottom";
tab_bar_margin_width = 0;
tab_bar_margin_height = "0 0";
tab_bar_style = "powerline";
tab_bar_min_tabs = 2;
shell = "fish";
editor = "${pkgs.neovim}";
allow_remote_control = "socket-only";
listen_on = "unix:/tmp/mykitty";
update_check_interval = 0;
allow_hyperlinks = true;
term = "xterm-kitty";
remember_window_size = "no";
linux_display_server = "wayland";
};
};
}