I think I mentioned it but here it is again in case the comment didnt federate
click to enlarge
# snippet based on end4 dotfiles -- FIXME edge case where a# preexisting tmp.png might be overwritten# Englishbind = Super+Shift,T,exec,grim -g "$(slurp $SLURP_ARGS)""tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm"tmp.png"# Koreanbind = Super+Shift,K,exec,grim -g "$(slurp $SLURP_ARGS)""tmp.png" && tesseract -l kor "tmp.png" - | wl-copy && rm"tmp.png"# Japanesebind = Super+Shift,J,exec,grim -g "$(slurp $SLURP_ARGS)""tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm"tmp.png"
Pipe grim and slurp (selects part of the Wayland screen then copies) into a tmp.png, tesseract it into the clipboard, then delete the tmp.png. Has like 1 sec of lag tho :]
I think I mentioned it but here it is again in case the comment didnt federate
click to enlarge
# snippet based on end4 dotfiles -- FIXME edge case where a # preexisting tmp.png might be overwritten # English bind = Super+Shift,T,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l eng "tmp.png" - | wl-copy && rm "tmp.png" # Korean bind = Super+Shift,K,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l kor "tmp.png" - | wl-copy && rm "tmp.png" # Japanese bind = Super+Shift,J,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract -l jpn "tmp.png" - | wl-copy && rm "tmp.png"
Pipe grim and slurp (selects part of the Wayland screen then copies) into a tmp.png, tesseract it into the clipboard, then delete the tmp.png. Has like 1 sec of lag tho :]