3 ms·
On my system I use a little script coupled to a key that lets you select a graphical area with text in it and it converts it into real text that is placed in th
by iefbr14 1y ago
On my system I use a little script coupled to a key that lets you select a graphical area with text in it and it converts it into real text that is placed in the clipboard:
#!/usr/bin/bash
maim -us | tesseract --dpi 145 -l eng - - | xsel -bi
[[ "$(xsel -ob)" ]] || (notify-send "No text found"; ohno)
You wil have to install maim, tesseract and xsel for it to work.
Edit: you can leave out the ohno which is just an audible alarm on my system
- zahlman 1y agoI've heard of tesseract and xsel, but what is maim? Seems a bit hard to look up given that it's also a common word.
- fread2281 1y agohttps://github.com/naelstrof/maim/ https://github.com/naelstrof/maim/ it's a screenshot utility
- suikun 1y ago“maim (make image) takes screenshots of your desktop.” https://github.com/naelstrof/maim https://github.com/naelstrof/maim Found it by searching through the official arch linux packages: https://archlinux.org/packages/ https://archlinux.org/packages/ Could also have tried AUR if hadn’t found it there :)