Modules/Kitty: Update for nix-darwin
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.homemodules) kitty color;
|
inherit (config.homemodules) kitty color;
|
||||||
@ -27,96 +28,102 @@ in {
|
|||||||
"kitty_mod+l" = "next_layout";
|
"kitty_mod+l" = "next_layout";
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = lib.mkMerge [
|
||||||
editor = config.home.sessionVariables.EDITOR;
|
# Linux config
|
||||||
scrollback_lines = 10000;
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
allow_remote_control = "yes"; # For nnn file preview or nvim scrollback
|
||||||
# hide_window_decorations = "yes";
|
listen_on = "unix:@mykitty";
|
||||||
enabled_layouts = "grid,vertical,horizontal";
|
})
|
||||||
|
|
||||||
allow_remote_control = "yes"; # For nnn file preview or nvim scrollback
|
# Common config
|
||||||
listen_on = "unix:@mykitty";
|
{
|
||||||
|
editor = config.home.sessionVariables.EDITOR;
|
||||||
|
scrollback_lines = 10000;
|
||||||
|
window_padding_width = 10; # Looks stupid with editors if bg doesn't match
|
||||||
|
# hide_window_decorations = "yes";
|
||||||
|
enabled_layouts = "grid,vertical,horizontal";
|
||||||
|
|
||||||
tab_bar_min_tabs = 2; # Don't show a single tab
|
tab_bar_min_tabs = 2; # Don't show a single tab
|
||||||
tab_bar_edge = "bottom";
|
tab_bar_edge = "bottom";
|
||||||
tab_bar_style = "powerline";
|
tab_bar_style = "powerline";
|
||||||
tab_powerline_style = "round";
|
tab_powerline_style = "round";
|
||||||
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
tab_title_template = "{title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}";
|
||||||
|
|
||||||
#
|
#
|
||||||
# Color Theme
|
# Color Theme
|
||||||
#
|
#
|
||||||
|
|
||||||
# The basic colors
|
# The basic colors
|
||||||
background = color.hexS.base;
|
background = color.hexS.base;
|
||||||
foreground = color.hexS.text;
|
foreground = color.hexS.text;
|
||||||
selection_foreground = color.hexS.base;
|
selection_foreground = color.hexS.base;
|
||||||
selection_background = color.hexS.rosewater;
|
selection_background = color.hexS.rosewater;
|
||||||
|
|
||||||
# Cursor colors
|
# Cursor colors
|
||||||
cursor = color.hexS.rosewater;
|
cursor = color.hexS.rosewater;
|
||||||
cursor_text_color = color.hexS.base;
|
cursor_text_color = color.hexS.base;
|
||||||
|
|
||||||
# URL underline color when hovering with mouse
|
# URL underline color when hovering with mouse
|
||||||
url_color = color.hexS.rosewater;
|
url_color = color.hexS.rosewater;
|
||||||
|
|
||||||
# Kitty window border colors
|
# Kitty window border colors
|
||||||
active_border_color = color.hexS.lavender;
|
active_border_color = color.hexS.lavender;
|
||||||
inactive_border_color = color.hexS.overlay0;
|
inactive_border_color = color.hexS.overlay0;
|
||||||
bell_border_color = color.hexS.yellow;
|
bell_border_color = color.hexS.yellow;
|
||||||
|
|
||||||
# OS Window titlebar colors
|
# OS Window titlebar colors
|
||||||
wayland_titlebar_color = "system";
|
wayland_titlebar_color = "system";
|
||||||
macos_titlebar_color = "system";
|
macos_titlebar_color = "system";
|
||||||
|
|
||||||
# Tab bar colors
|
# Tab bar colors
|
||||||
active_tab_foreground = color.hexS.base;
|
active_tab_foreground = color.hexS.base;
|
||||||
active_tab_background = color.hexS.lavender;
|
active_tab_background = color.hexS.lavender;
|
||||||
inactive_tab_foreground = color.hexS.text;
|
inactive_tab_foreground = color.hexS.text;
|
||||||
inactive_tab_background = color.hexS.crust;
|
inactive_tab_background = color.hexS.crust;
|
||||||
tab_bar_background = color.hexS.base;
|
tab_bar_background = color.hexS.base;
|
||||||
|
|
||||||
# Color for marks (marked text in the terminal)
|
# Color for marks (marked text in the terminal)
|
||||||
mark1_foreground = color.hexS.base;
|
mark1_foreground = color.hexS.base;
|
||||||
mark1_background = color.hexS.lavender;
|
mark1_background = color.hexS.lavender;
|
||||||
mark2_foreground = color.hexS.base;
|
mark2_foreground = color.hexS.base;
|
||||||
mark2_background = color.hexS.mauve;
|
mark2_background = color.hexS.mauve;
|
||||||
mark3_foreground = color.hexS.base;
|
mark3_foreground = color.hexS.base;
|
||||||
mark3_background = color.hexS.sapphire;
|
mark3_background = color.hexS.sapphire;
|
||||||
|
|
||||||
# The 16 terminal colors
|
# The 16 terminal colors
|
||||||
# black
|
# black
|
||||||
color0 = color.hexS.subtext1;
|
color0 = color.hexS.subtext1;
|
||||||
color8 = color.hexS.subtext0;
|
color8 = color.hexS.subtext0;
|
||||||
|
|
||||||
# red
|
# red
|
||||||
color1 = color.hexS.red;
|
color1 = color.hexS.red;
|
||||||
color9 = color.hexS.red;
|
color9 = color.hexS.red;
|
||||||
|
|
||||||
# green
|
# green
|
||||||
color2 = color.hexS.green;
|
color2 = color.hexS.green;
|
||||||
color10 = color.hexS.green;
|
color10 = color.hexS.green;
|
||||||
|
|
||||||
# yellow
|
# yellow
|
||||||
color3 = color.hexS.yellow;
|
color3 = color.hexS.yellow;
|
||||||
color11 = color.hexS.yellow;
|
color11 = color.hexS.yellow;
|
||||||
|
|
||||||
# blue
|
# blue
|
||||||
color4 = color.hexS.blue;
|
color4 = color.hexS.blue;
|
||||||
color12 = color.hexS.blue;
|
color12 = color.hexS.blue;
|
||||||
|
|
||||||
# magenta
|
# magenta
|
||||||
color5 = color.hexS.pink;
|
color5 = color.hexS.pink;
|
||||||
color13 = color.hexS.pink;
|
color13 = color.hexS.pink;
|
||||||
|
|
||||||
# cyan
|
# cyan
|
||||||
color6 = color.hexS.teal;
|
color6 = color.hexS.teal;
|
||||||
color14 = color.hexS.teal;
|
color14 = color.hexS.teal;
|
||||||
|
|
||||||
# white
|
# white
|
||||||
color7 = color.hexS.surface2;
|
color7 = color.hexS.surface2;
|
||||||
color15 = color.hexS.surface1;
|
color15 = color.hexS.surface1;
|
||||||
};
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user