nixos-configs/modules/desktop/terminal.nix

42 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-07-16 04:16:33 +02:00
{ config, lib, ... }:
2024-06-23 20:15:59 +02:00
2024-07-16 04:16:33 +02:00
let
cfg = config.modules.desktop.terminal;
in
{
options.modules.desktop.terminal = {
enable = lib.my.mkBoolOpt false;
};
config = lib.mkIf cfg.enable {
2024-06-23 20:15:59 +02:00
home-manager.users.${config.user.name} = {
programs.kitty = {
enable = true;
shellIntegration.enableZshIntegration = true;
settings = {
scrollback_lines = 65535;
enable_audio_bell = false;
2024-07-03 05:42:05 +02:00
font_family = "Meslo LG S";
2024-06-23 20:15:59 +02:00
font_size = 10;
2024-07-16 04:16:33 +02:00
symbol_map = "U+e000-U+e00a,U+ea60-U+ebeb,U+e0a0-U+e0c8,U+e0ca,U+e0cc-U+e0d4,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b1,U+e700-U+e7c5,U+f000-U+f2e0,U+f300-U+f372,U+f400-U+f532,U+f0001-U+f1af0 Symbols Nerd Font Mono";
2025-12-08 02:40:50 +01:00
allow_remote_control = "yes";
listen_on = "unix:@mykitty";
2024-06-23 20:15:59 +02:00
};
keybindings = {
"ctrl+up" = "change_font_size all +2.0";
"ctrl+down" = "change_font_size all -2.0";
"shift+page_up" = "scroll_page_up";
"shift+page_down" = "scroll_page_down";
2025-08-12 18:18:38 +02:00
"ctrl+shift+u" = "scroll_to_prompt -1";
"ctrl+shift+d" = "scroll_to_prompt 1";
"ctrl+shift+t" = "new_tab_with_cwd !neighbor";
"ctrl+," = "previous_tab";
"ctrl+;" = "next_tab";
"ctrl+shift+," = "move_tab_backward";
"ctrl+shift+;" = "move_tab_forward";
2024-06-23 20:15:59 +02:00
};
2024-10-13 22:52:21 +02:00
themeFile = "gruvbox-dark";
2024-06-23 20:15:59 +02:00
};
};
};
}