Many changes
This commit is contained in:
58
modules/kitty/colors.nix
Normal file
58
modules/kitty/colors.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.custom.colors.kitty = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.custom.colors.kitty.enable {
|
||||
programs.kitty.settings = with config.custom.colors; {
|
||||
# Based on https://github.com/mk12/base16-kitty
|
||||
|
||||
background = base00;
|
||||
foreground = base05;
|
||||
selection_background = base05;
|
||||
selection_foreground = base00;
|
||||
url_color = base0D;
|
||||
cursor = base0D;
|
||||
cursor_text_color = base00;
|
||||
active_border_color = base03;
|
||||
inactive_border_color = base01;
|
||||
active_tab_background = base00;
|
||||
active_tab_foreground = base05;
|
||||
inactive_tab_background = base01;
|
||||
inactive_tab_foreground = base04;
|
||||
|
||||
# Normal
|
||||
color0 = base00;
|
||||
color1 = base08;
|
||||
color2 = base0B;
|
||||
color3 = base0A;
|
||||
color4 = base0D;
|
||||
color5 = base0E;
|
||||
color6 = base0C;
|
||||
color7 = base05;
|
||||
|
||||
# Bright (same as Normal except 8/15)
|
||||
color8 = base03;
|
||||
color9 = base08;
|
||||
color10 = base0B;
|
||||
color11 = base0A;
|
||||
color12 = base0D;
|
||||
color13 = base0E;
|
||||
color14 = base0C;
|
||||
color15 = base07;
|
||||
|
||||
# Other (like base16-shell)
|
||||
color16 = base09;
|
||||
color17 = base0F;
|
||||
color18 = base01;
|
||||
color19 = base02;
|
||||
color20 = base04;
|
||||
color21 = base06;
|
||||
};
|
||||
};
|
||||
}
|
||||
16
modules/kitty/home.nix
Normal file
16
modules/kitty/home.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ ... }: {
|
||||
imports = [ ./colors.nix ];
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
settings = {
|
||||
editor = "micro";
|
||||
|
||||
confirm_os_window_close = 0;
|
||||
enable_audio_bell = false;
|
||||
visual_bell_duration = "0.6";
|
||||
visual_bell_color = "#111111";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user