Skip to content

Latest commit

 

History

History
executable file
·
120 lines (97 loc) · 2.6 KB

kitty.md

File metadata and controls

executable file
·
120 lines (97 loc) · 2.6 KB

Kitty

{ config, pkgs, lib, ... }:
{
  programs.kitty = {
    enable = true;
    <<<modules/home/kitty-config>>>
  };
  <<<modules/home/kitty>>>
}

Appearance

Font

font = {
  name = "jetbrainsmono nerd font";
  size = 10;
};

Do not use curly style for urls

settings.url_style = "single";

Colors

Gruvbox light

settings = {
  cursor                  = "#928374";
  background              = "#fbf1c7";
  foreground              = "#282828";
  selection_foreground    = "#665c54";
  selection_background    = "#d5c4a1";
  # white
  color0                  = "#fbf1c7";
  color8                  = "#9d8374";
  # red
  color1                  = "#cc241d";
  color9                  = "#9d0006";
  # green
  color2                  = "#98971a";
  color10                 = "#79740e";
  # yellow
  color3                  = "#d79921";
  color11                 = "#b57614";
  # blue
  color4                  = "#458588";
  color12                 = "#076678";
  # purple
  color5                  = "#b16286";
  color13                 = "#8f3f71";
  # aqua
  color6                  = "#689d6a";
  color14                 = "#427b58";
  # black
  color7                  = "#7c6f64";
  color15                 = "#3c3836";
};

Tabs

settings = {
  active_tab_background   = "#fbf1c7";
  inactive_tab_background = "#d5c4a1";
  tab_bar_background      = "none";
};

Title bar

Automatically match title bar color on Wayland

settings.wayland_titlebar_color = "background";

Tabs style

settings = {
  tab_bar_edge        = "top";
  tab_bar_style       = "powerline";
  tab_powerline_style = "slanted";
};

Ask closing

Ask before closing only if there are at least two active tabs opened

settings.confirm_os_window_close = -2;

Default terminal

Force the usage of kitty as neovim terminal

xdg.desktopEntries.nvim = lib.mkIf config.programs.neovim.enable {
  name = "NeoVim";
  genericName = "Text Editor";
  icon = "nvim";
  exec = "kitty nvim %F";
  terminal = false;
  categories = [ "Utility" "TextEditor" ];
  mimeType = [ "text/english" "text/plain" "text/x-makefile" "text/x-c++hdr" "text/x-c++src" "text/x-chdr" "text/x-csrc" "text/x-java" "text/x-moc" "text/x-pascal" "text/x-tcl" "text/x-tex" "application/x-shellscript" "text/x-c" "text/x-c++" ];
};