nix-dotfiles/modules/hm/kitty.nix
Filippo Berto 369fa8dc43
Squashed commit of the following:
commit 1c8b782f923d94e2c7dfdd93c1f4412d0949100f
Author: Filippo Berto <berto.f@protonmail.com>
Date:   Wed Apr 2 10:45:01 2025 +0200

    Foot terminal

commit 3e9a1665eac07458dd86502c8b33113bde87e4aa
Author: Filippo Berto <berto.f@protonmail.com>
Date:   Sun Dec 15 12:40:56 2024 +0100

    Sif: fix missing fonts

commit 014c7f739b3758b880f957cc07d1633843883c88
Author: Filippo Berto <berto.f@protonmail.com>
Date:   Sun Dec 15 12:40:39 2024 +0100

    Foot: WIP
2025-04-02 23:22:20 +02:00

51 lines
1.2 KiB
Nix

{ nixosConfig, ... }:
with nixosConfig.nix-rice.lib;
let
inherit (nixosConfig.nix-rice) rice;
strPalette = palette.toRgbHex {
inherit (rice.colorPalette)
background
foreground
color0
color1
color2
color3
color4
color5
color6
color7
color8
color9
color10
color11
color12
color13
color14
color15
;
};
in
{
programs.kitty = {
enable = true;
settings = {
scrollback_lines = 10000;
enable_audio_bell = false;
visual_bell_duration = toString 0.1;
update_check_interval = 0;
background_opacity = toString rice.opacity;
close_on_child_death = "yes";
clipboard_control = "write-clipboard write-primary read-clipboard read-primary";
disable_ligatures = "never";
editor = "nvim";
} // strPalette;
keybindings = {
"ctrl+shift+t" = "new_tab_with_cwd";
"ctrl+shift+enter" = "new_window_with_cwd";
"ctrl+shift+n" = "new_os_window_with_cwd";
"ctrl+shift+up" = "previous_window";
"ctrl+shift+down" = "next_window";
};
font = { inherit (rice.font.monospace) name package size; };
};
}