diff --git a/profiles/workspace/sway/default.nix b/profiles/workspace/sway/default.nix index ddf2b03..079829e 100755 --- a/profiles/workspace/sway/default.nix +++ b/profiles/workspace/sway/default.nix @@ -190,6 +190,10 @@ in { script "screenshot-area-copy" '' ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-copy''; + "--release ${modifier}+Insert" = + script "screenshot-ocr" + "${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.tesseract5}/bin/tesseract - - | ${pkgs.wl-clipboard}/bin/wl-copy"; + "${modifier}+x" = "focus output right"; "${modifier}+Shift+x" = "move workspace to output right"; "${modifier}+Shift+h" = "layout splith";