Files
bankrupt/home-manager/modules/kitty.nix
T
2026-01-23 01:26:09 +08:00

74 lines
2.1 KiB
Nix

# Terminal emulator configurations
{
inputs,
lib,
config,
pkgs,
...
}: {
programs.kitty = {
enable = true;
font = {
name = "Fira Code";
size = 13.0;
};
settings = {
# Fonts
bold_font = "Fira Code Bold";
italic_font = "Maple Mono Italic";
bold_italic_font = "Maple Mono BoldItalic";
symbol_map = "U+e000-U+e00a,U+ea60-U+ebeb,U+e0a0-U+e0c8,U+e0ca,U+e0cc-U+e0d7,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b1,U+e700-U+e7c5,U+ed00-U+efc1,U+f000-U+f2ff,U+f000-U+f2e0,U+f300-U+f372,U+f400-U+f533,U+f0001-U+f1af0 Symbols Nerd Font Mono";
disable_ligatures = "cursor";
# Cursor
cursor = "none";
cursor_blink_interval = 0;
cursor_trail = 3;
# Window
hide_window_decorations = "titlebar-only";
window_margin_width = 4;
remember_window_size = "yes";
initial_window_width = 1600;
initial_window_height = 1000;
enabled_layouts = "Splits,Stack";
confirm_os_window_close = -2;
# Performance
repaint_delay = 8;
input_delay = 1;
resize_draw_strategy = "blank";
resize_debounce_time = "0.001";
# Tab bar
tab_bar_min_tabs = 1;
tab_bar_edge = "top";
tab_bar_style = "powerline";
tab_powerline_style = "slanted";
tab_separator = "\" \"";
tab_activity_symbol = "";
tab_title_max_length = 30;
tab_title_template = "\"{fmt.fg.red}{bell_symbol}{fmt.fg.tab} {index}: ({tab.active_oldest_exe}) {title}{fmt.bold}{' ' if num_windows > 1 and layout_name == 'stack' else ''}{' :{}:'.format(num_windows) if num_windows > 1 else ''}{activity_symbol}\"";
# Scrollback
scrollback_lines = 10000;
touch_scroll_multiplier = "6.0";
# scrollback_pager = "~/.local/share/bob/nvim-bin/nvim -c \"lua require('util').colorize()\"";
# Misc
copy_on_select = "yes";
background_opacity = "0.5";
dynamic_background_opacity = "yes";
enable_audio_bell = "no";
# macOS specific
macos_quit_when_last_window_closed = "no";
macos_colorspace = "default";
macos_show_window_title_in = "window";
};
};
}