change kitty configuration
This commit is contained in:
parent
3ce732fee2
commit
767c9926f5
4 changed files with 36 additions and 25 deletions
|
@ -5,6 +5,7 @@
|
|||
./editor.nix
|
||||
./git.nix
|
||||
./gpg.nix
|
||||
./gui
|
||||
#./hyperland.nix
|
||||
./i3.nix
|
||||
./packages
|
||||
|
|
3
homes/palo/gui/default.nix
Normal file
3
homes/palo/gui/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
imports = [ ./kitty.nix ];
|
||||
}
|
32
homes/palo/gui/kitty.nix
Normal file
32
homes/palo/gui/kitty.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue