36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ lib, pkgs, config, ... }:
|
|
with lib;
|
|
{
|
|
|
|
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";
|
|
};
|
|
};
|
|
|
|
|
|
};
|
|
}
|