2023-10-26 02:37:42 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let font = "Rec Mono Duotone";
|
2023-08-23 00:50:29 +00:00
|
|
|
in {
|
2023-11-03 04:12:17 +00:00
|
|
|
imports = [ ./extras/kitty/auto-theme.nix ./extras/kitty/nerd-font.nix ];
|
2023-11-03 23:19:07 +00:00
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
|
|
|
# using kitty from homebrew
|
|
|
|
package = pkgs.emptyDirectory;
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
settings = {
|
|
|
|
font_family = font;
|
|
|
|
bold_font = "${font} Bold";
|
|
|
|
italic_font = "${font} Italic";
|
|
|
|
bold_italic_font = "${font} Bold Italic";
|
|
|
|
font_size = "15.0";
|
|
|
|
adjust_line_height = "120%";
|
|
|
|
disable_ligatures = "cursor"; # disable ligatures when cursor is on them
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
hide_window_decorations = "titlebar-only";
|
|
|
|
window_padding_width = "10";
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
tab_bar_edge = "top";
|
|
|
|
tab_bar_style = "powerline";
|
|
|
|
tab_powerline_style = "angled";
|
|
|
|
tab_title_template = "{index}: {title}";
|
|
|
|
active_tab_font_style = "bold";
|
|
|
|
inactive_tab_font_style = "normal";
|
|
|
|
tab_activity_symbol = "💬";
|
2022-01-23 01:32:58 +00:00
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
# shell integration is manually enabled for fish
|
|
|
|
shell_integration = "disabled";
|
|
|
|
} // lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
|
|
macos_option_as_alt = "both";
|
|
|
|
};
|
2022-07-29 22:01:24 +00:00
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
useSymbolsFromNerdFont = "CaskaydiaCove Nerd Font";
|
|
|
|
colors = {
|
|
|
|
enable = true;
|
|
|
|
dark-name = "rose-pine";
|
|
|
|
light-name = "rose-pine-dawn";
|
|
|
|
};
|
2022-01-23 01:32:58 +00:00
|
|
|
};
|
|
|
|
|
2023-11-03 23:19:07 +00:00
|
|
|
programs.fish = {
|
|
|
|
interactiveShellInit = ''
|
|
|
|
# Manually enable shell integration
|
|
|
|
if set -q KITTY_INSTALLATION_DIR
|
|
|
|
set --global KITTY_SHELL_INTEGRATION enabled
|
|
|
|
source "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish"
|
|
|
|
set --prepend fish_complete_path "$KITTY_INSTALLATION_DIR/shell-integration/fish/vendor_completions.d"
|
2022-07-26 04:22:16 +00:00
|
|
|
end
|
2023-11-03 23:19:07 +00:00
|
|
|
set-term-colors
|
2022-07-26 04:22:16 +00:00
|
|
|
'';
|
2023-11-03 23:19:07 +00:00
|
|
|
shellAliases = {
|
|
|
|
s = "kitty +kitten ssh";
|
|
|
|
e = "edit-in-kitty";
|
|
|
|
};
|
|
|
|
|
|
|
|
functions.set-term-colors = {
|
|
|
|
body = ''
|
|
|
|
if test "$term_background" = light
|
|
|
|
term-light
|
|
|
|
else
|
|
|
|
term-dark
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
onVariable = "term_background";
|
|
|
|
};
|
2022-01-23 01:32:58 +00:00
|
|
|
};
|
2022-01-23 23:50:34 +00:00
|
|
|
}
|