### Why? powertoys recently added this feature, and I understand why, every time I need to use this having to `take a ss> find an image to text website> paste/ upload image> wait for processing> download> and use` it makes me want to scream, and i think spectacle is a great tool for this, especially because it's the default kde tool. ### How? Deciding on how to implement this is tricky, I think the best way to do it is in these two ways: 1 - have a keybinding modifier that takes a ss like normall but instead of copying the image to clipboard it copies the text, so if `ctl+shift+a` selects a windows and copies it than `ctl+shift+alt+a` copies the text instead. 2 - have a menu button to copy text
*** This bug has been marked as a duplicate of bug 460320 ***
as a workaround one could try to use this command for OCR with spectacle: you could bind this command to a keybind in settings For X11: `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | xclip -in -selection clipboard` For Wayland: `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | wl-copy`
I attempted to run `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract stdin stdout | xclip -in -selection clipboard` on an x11 system, and after fixing an error with not having tesseract installed, it not just says "Error during processing". I have tried a couple of different scenarios and in all cases that is what it says, with nothing being copied to clipboard. (In reply to akid.anis799 from comment #2) > as a workaround one could try to use this command for OCR with spectacle: > > you could bind this command to a keybind in settings > > For X11: > `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract > stdin stdout | xclip -in -selection clipboard` > > For Wayland: > `spectacle --nonotify --region --background -o /proc/selt/fd/1 | tesseract > stdin stdout | wl-copy`