diff --git a/home/modules/kitty.nix b/home/modules/kitty.nix index 40c62a5..636479c 100644 --- a/home/modules/kitty.nix +++ b/home/modules/kitty.nix @@ -1,4 +1,4 @@ -{ lib, config, ... }: +{ lib, config, pkgs, ... }: let cfg = config.snowhawk.kitty; @@ -27,7 +27,15 @@ in allow_remote_control = "yes"; }; - extraConfig = "include ${../../home/kitty/alacritty-colors.conf}"; + extraConfig = + let + kitten = "${pkgs.kitty}/bin/kitten"; + in + '' + include ${../../home/kitty/alacritty-colors.conf} + + map ctrl+k ${pkgs.writeShellScript "kitten-snap" "${kitten} @ get-text --self --ansi > /tmp/test"} + ''; }; }; }