kitty: update configurations
This commit is contained in:
parent
57521fa07e
commit
d4dffea6ff
|
@ -4,7 +4,46 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.kitty.enable = true;
|
programs.zsh.initExtra = ''
|
||||||
|
if [[ "$TERM" == "xterm-kitty" ]]; then
|
||||||
|
alias ssh="kitty +kitten ssh"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# General
|
||||||
|
underline_hyperlinks = "always";
|
||||||
|
enable_audio_bell = false;
|
||||||
|
|
||||||
|
# Layouts
|
||||||
|
enabled_layouts = "splits";
|
||||||
|
|
||||||
|
# Window
|
||||||
|
tab_bar_edge = "top";
|
||||||
|
tab_bar_margin_width = toString 0.2;
|
||||||
|
tab_bar_style = "slant";
|
||||||
|
background_blur = 40;
|
||||||
|
background_opacity = toString 0.90;
|
||||||
|
};
|
||||||
|
keybindings = {
|
||||||
|
"ctrl+a>enter" = "launch --location=hsplit --cwd=current";
|
||||||
|
"ctrl+a>backspace" = "launch --location=vsplit --cwd=current";
|
||||||
|
"ctrl+a>h" = "neighboring_window left";
|
||||||
|
"ctrl+a>j" = "neighboring_window down";
|
||||||
|
"ctrl+a>k" = "neighboring_window up";
|
||||||
|
"ctrl+a>l" = "neighboring_window right";
|
||||||
|
"ctrl+a>t" = "new_tab_with_cwd";
|
||||||
|
"ctrl+a>w" = "close_window";
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
name = "JetBrainsMono Nerd Font Mono";
|
||||||
|
size = 11;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
globinclude kitty.d/**/*.conf
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
home.file.".config/kitty" = {
|
home.file.".config/kitty" = {
|
||||||
source = ./.;
|
source = ./.;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
globinclude kitty.d/**/*.conf
|
|
|
@ -1,2 +0,0 @@
|
||||||
underline_hyperlinks always
|
|
||||||
enable_audio_bell no
|
|
|
@ -1,2 +0,0 @@
|
||||||
font_family JetBrainsMono Nerd Font Mono
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
# enabled_layouts tall:bias=80;full_size=1;mirrored=false,fat:bias=75;full_size=1;mirrored=false,splits
|
|
||||||
|
|
||||||
# map ctrl+a>enter launch --location=hsplit --cwd=current
|
|
||||||
# map ctrl+a>backspace launch --location=vsplit --cwd=current
|
|
||||||
#
|
|
||||||
# map ctrl+a>h neighboring_window left
|
|
||||||
# map ctrl+a>j neighboring_window down
|
|
||||||
# map ctrl+a>k neighboring_window up
|
|
||||||
# map ctrl+a>l neighboring_window right
|
|
||||||
#
|
|
||||||
# map ctrl+a>shift+k move_window up
|
|
||||||
# map ctrl+a>shift+j move_window down
|
|
||||||
# map ctrl+a>shift+h move_window left
|
|
||||||
# map ctrl+a>shift+l move_window right
|
|
||||||
#
|
|
||||||
# map ctrl+a>t new_tab_with_cwd
|
|
|
@ -1,3 +0,0 @@
|
||||||
tab_bar_edge top
|
|
||||||
tab_bar_margin_width 0.2
|
|
||||||
tab_bar_style slant
|
|
|
@ -1,3 +0,0 @@
|
||||||
background_blur 40
|
|
||||||
background_opacity 0.90
|
|
||||||
# background_tint 0.5
|
|
Loading…
Reference in a new issue