change kitty configuration

This commit is contained in:
Ingolf Wagner 2024-06-15 15:16:29 +02:00
parent 3ce732fee2
commit 767c9926f5
Signed by: palo
GPG key ID: 76BF5F1928B9618B
4 changed files with 36 additions and 25 deletions

View file

@ -5,6 +5,7 @@
./editor.nix
./git.nix
./gpg.nix
./gui
#./hyperland.nix
./i3.nix
./packages

View file

@ -0,0 +1,3 @@
{
imports = [ ./kitty.nix ];
}

32
homes/palo/gui/kitty.nix Normal file
View file

@ -0,0 +1,32 @@
{
options.gui.kitty.enable = mkOption {
type = lib.types.bool;
default = config.gui.enable;
};
config = lib.mkIf config.gui.kitty.enable {
programs.kitty = {
enable = true;
settings = {
enable_audio_bell = "no";
focus_follows_mouse = "yes";
#mouse_map left click ungrabbed mouse_handle_click prompt
#mouse_map ctrl+left click ungrabbed mouse_handle_click link
#map ctrl+c copy_to_clipboard
copy_on_select = "yes";
strip_trailing_spaces = "always";
confirm_os_window_close = 0; # 0 disables it; -1 enables it
};
keybindings = {
"super+shift+return" = "new_os_window_with_cwd";
"shift+page_up" = "scroll_page_up";
"shift+page_down" = "scroll_page_down";
# font scaling
"ctrl+equal" = "change_font_size all +1.0";
"ctrl+plus" = "change_font_size all +1.0";
"ctrl+minus" = "change_font_size all -1.0";
};
};
};
}

View file

@ -118,31 +118,6 @@ in
};
};
programs.kitty = {
enable = true;
settings = {
enable_audio_bell = "no";
focus_follows_mouse = "yes";
#mouse_map left click ungrabbed mouse_handle_click prompt
#mouse_map ctrl+left click ungrabbed mouse_handle_click link
#map ctrl+c copy_to_clipboard
copy_on_select = "yes";
strip_trailing_spaces = "always";
confirm_os_window_close = 0; # 0 disables it; -1 enables it
};
keybindings = {
"super+shift+return" = "new_os_window_with_cwd";
"shift+page_up" = "scroll_page_up";
"shift+page_down" = "scroll_page_down";
"alt+l" = "scroll_line_up";
"alt+a" = "scroll_line_down";
"alt+i" = "scroll_page_up";
"alt+e" = "scroll_page_down";
};
};
programs.alacritty = {
enable = true;
settings = {