Terminal: migrate to Kitty
This commit is contained in:
parent
529dea61f8
commit
91fbc2bf98
6 changed files with 50 additions and 69 deletions
30
modules/desktop/terminal.nix
Normal file
30
modules/desktop/terminal.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.desktop.terminal;
|
||||
in {
|
||||
options.modules.desktop.terminal = { enable = mkBoolOpt false; };
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
shellIntegration.enableZshIntegration = true;
|
||||
settings = {
|
||||
scrollback_lines = 65535;
|
||||
enable_audio_bell = false;
|
||||
font_size = 10;
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+up" = "change_font_size all +2.0";
|
||||
"ctrl+down" = "change_font_size all -2.0";
|
||||
"shift+page_up" = "scroll_page_up";
|
||||
"shift+page_down" = "scroll_page_down";
|
||||
"ctrl+shift+comma" = "scroll_to_prompt -1";
|
||||
"ctrl+shift+semicolon" = "scroll_to_prompt 1";
|
||||
};
|
||||
theme = "Gruvbox Dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue