diff --git a/home/profiles/xsession/terminal.nix b/home/profiles/xsession/terminal.nix index 9bccada..59fed4e 100644 --- a/home/profiles/xsession/terminal.nix +++ b/home/profiles/xsession/terminal.nix @@ -3,29 +3,23 @@ config = lib.mkIf config.profiles.xsession.enable { - home.file.kitty = { - target = ".config/kitty/kitty.conf"; - text = '' - #term xterm-256color - font_family MesloLGS NF - font_size 12.0 - background_opacity 0.7 + programs.kitty = { + enable = true; + font.name = "MesloLGS NF"; + font.size = 12; + keybindings = { + "ctrl+shift+c" = "copy_to_clipboard"; + "ctrl+shift+v" = "paste_from_clipboard"; - clear_all_shortcuts yes - - map ctrl+shift+c copy_to_clipboard - map ctrl+shift+v paste_from_clipboard - - - - map ctrl+plus change_font_size all +2.0 - map ctrl+shift+plus change_font_size all -2.0 - ''; + "ctrl+plus" = "change_font_size all +2.0"; + "ctrl+shift+plus" = "change_font_size all -2.0"; + }; + settings = { + "background_opacity" = 0.7; + }; }; - home.packages = [ - pkgs.kitty pkgs.ncurses.dev ]; };