Add a from-screen OCR thing

This commit is contained in:
Alexander Bantyev 2022-08-26 12:11:36 +04:00
parent 477c4116da
commit 23c7c53dc4
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -190,6 +190,10 @@ in {
script "screenshot-area-copy" '' script "screenshot-area-copy" ''
${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.wl-clipboard}/bin/wl-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}+x" = "focus output right";
"${modifier}+Shift+x" = "move workspace to output right"; "${modifier}+Shift+x" = "move workspace to output right";
"${modifier}+Shift+h" = "layout splith"; "${modifier}+Shift+h" = "layout splith";