|
1 | | -{ ... }: |
| 1 | +{ config, pkgs, lib, osConfig, ... }: |
| 2 | + |
| 3 | +let |
| 4 | + theme = osConfig.theme; |
| 5 | +in |
2 | 6 | { |
3 | | - programs.kitty = { |
4 | | - enable = true; |
5 | | - # themeFile = "Glacier"; |
6 | | - # font = "JetBrains Mono"; |
| 7 | + programs.kitty = { |
| 8 | + enable = true; |
| 9 | + |
| 10 | + # Font configuration |
| 11 | + font = { |
| 12 | + name = theme.font.mono; |
| 13 | + size = theme.font.size.normal; |
7 | 14 | }; |
| 15 | + |
| 16 | + settings = { |
| 17 | + # Bell |
| 18 | + enable_audio_bell = false; |
| 19 | + |
| 20 | + # Window layout |
| 21 | + window_padding_width = 10; |
| 22 | + confirm_os_window_close = 0; |
| 23 | + |
| 24 | + # Cursor |
| 25 | + cursor_trail = 1; |
| 26 | + cursor_shape = "block"; |
| 27 | + cursor_blink_interval = 0; |
| 28 | + |
| 29 | + # Tab bar |
| 30 | + tab_bar_edge = "bottom"; |
| 31 | + tab_bar_style = "powerline"; |
| 32 | + tab_powerline_style = "slanted"; |
| 33 | + tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}"; |
| 34 | + |
| 35 | + # Performance tuning |
| 36 | + repaint_delay = 10; |
| 37 | + input_delay = 3; |
| 38 | + sync_to_monitor = true; |
| 39 | + |
| 40 | + # Colors - Basic |
| 41 | + foreground = theme.fg; |
| 42 | + background = theme.bg; |
| 43 | + selection_foreground = theme.bg; |
| 44 | + selection_background = theme.accent; |
| 45 | + |
| 46 | + # Cursor colors |
| 47 | + cursor = theme.accent; |
| 48 | + cursor_text_color = theme.bg; |
| 49 | + |
| 50 | + # URL color |
| 51 | + url_color = theme.blue; |
| 52 | + |
| 53 | + # Border colors |
| 54 | + active_border_color = theme.accent; |
| 55 | + inactive_border_color = theme.border; |
| 56 | + bell_border_color = theme.urgent; |
| 57 | + |
| 58 | + # Tab bar colors |
| 59 | + active_tab_foreground = theme.bg; |
| 60 | + active_tab_background = theme.accent; |
| 61 | + inactive_tab_foreground = theme.fg; |
| 62 | + inactive_tab_background = theme.bg-alt; |
| 63 | + tab_bar_background = theme.bg; |
| 64 | + |
| 65 | + # Terminal colors |
| 66 | + # Black |
| 67 | + color0 = theme.bg-alt; |
| 68 | + color8 = theme.fg-alt; |
| 69 | + |
| 70 | + # Red |
| 71 | + color1 = theme.red; |
| 72 | + color9 = theme.red; |
| 73 | + |
| 74 | + # Green |
| 75 | + color2 = theme.green; |
| 76 | + color10 = theme.green; |
| 77 | + |
| 78 | + # Yellow |
| 79 | + color3 = theme.yellow; |
| 80 | + color11 = theme.yellow; |
| 81 | + |
| 82 | + # Blue |
| 83 | + color4 = theme.blue; |
| 84 | + color12 = theme.blue; |
| 85 | + |
| 86 | + # Magenta |
| 87 | + color5 = theme.purple; |
| 88 | + color13 = theme.purple; |
| 89 | + |
| 90 | + # Cyan |
| 91 | + color6 = theme.cyan; |
| 92 | + color14 = theme.cyan; |
| 93 | + |
| 94 | + # White |
| 95 | + color7 = theme.fg; |
| 96 | + color15 = theme.fg; |
| 97 | + }; |
| 98 | + |
| 99 | + # Keybindings |
| 100 | + keybindings = { |
| 101 | + # Open new tab in same directory |
| 102 | + "ctrl+shift+t" = "new_tab_with_cwd"; |
| 103 | + }; |
| 104 | + }; |
8 | 105 | } |
0 commit comments