This nice little one liner bash script, assigned to a shortcut Meta +Shift + O. It opens the flameshot GUI, let’s you select an area of text in your screen and click Ok. It OCRs the screenshot and puts it into the clipboard. It checks for whether you’re using Wayland or X11 to use the appropriate clipboard tool. Beyond the more typical text in an image scenario, it’s a convenient way to copy non-selectable text in error popups.
Not my original idea, copied the concept from a suggestion in a GitHub comment thread and adapted it.
This nice little one liner bash script, assigned to a shortcut Meta +Shift + O. It opens the flameshot GUI, let’s you select an area of text in your screen and click Ok. It OCRs the screenshot and puts it into the clipboard. It checks for whether you’re using Wayland or X11 to use the appropriate clipboard tool. Beyond the more typical text in an image scenario, it’s a convenient way to copy non-selectable text in error popups. Not my original idea, copied the concept from a suggestion in a GitHub comment thread and adapted it.