From 6ad3c8d576e9b5a3c3e6ae0c5a51895970f787cc Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 29 Mar 2022 11:10:16 +0200 Subject: [PATCH] Kitty terminal settings --- modules/kitty.nix | 40 ++++++++++++++++++++++++++++++++++++++++ odin.nix | 3 ++- rice.nix | 2 +- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 modules/kitty.nix diff --git a/modules/kitty.nix b/modules/kitty.nix new file mode 100644 index 0000000..bc1a65a --- /dev/null +++ b/modules/kitty.nix @@ -0,0 +1,40 @@ +{ pkgs, lib, ... }: +let strPalette = with pkgs.rice; palette.toRgbHex rec { + foreground = colorPalette.normal.white; + background = colorPalette.normal.black; + color0 = colorPalette.normal.black; + color1 = colorPalette.normal.red; + color2 = colorPalette.normal.green; + color3 = colorPalette.normal.yellow; + color4 = colorPalette.normal.blue; + color5 = colorPalette.normal.magenta; + color6 = colorPalette.normal.cyan; + color7 = colorPalette.normal.white; + color8 = colorPalette.bright.black; + color9 = colorPalette.bright.red; + color10 = colorPalette.bright.green; + color11 = colorPalette.bright.yellow; + color12 = colorPalette.bright.blue; + color13 = colorPalette.bright.magenta; + color14 = colorPalette.bright.cyan; + color15 = colorPalette.bright.white; +}; +in +{ + programs.kitty = { + enable = true; + settings = { + scrollback_lines = 10000; + enable_audio_bell = false; + update_check_interval = 0; + background_opacity = toString pkgs.rice.opacity; + close_on_child_death = "yes"; + clipboard_control = "write-clipboard write-primary read-clipboard read-primary"; + disable_ligatures = "never"; + # font_features = ""; + } // strPalette; + font = pkgs.rice.font.monospace; + extraConfig = '' + ''; + }; +} diff --git a/odin.nix b/odin.nix index 9d60f99..dee6e37 100644 --- a/odin.nix +++ b/odin.nix @@ -53,7 +53,7 @@ element-desktop evolution file - firefox + # firefox # gallery-dl glab gnome.dconf-editor @@ -145,6 +145,7 @@ ./modules/kakoune.nix # ./modules/keepassxc.nix ./modules/keychain.nix + ./modules/kitty.nix ./modules/latex.nix ./modules/lf.nix ./modules/libinput-gestures.nix diff --git a/rice.nix b/rice.nix index 54afeef..a284b57 100644 --- a/rice.nix +++ b/rice.nix @@ -43,7 +43,7 @@ in size = 10; }; monospace = { - name = "FuraCode Nerd Font Mono"; + name = "FiraCode Nerd Font Mono"; package = ( final.nerdfonts.override { fonts = [ "FiraCode" ];