#!/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
reply
Found it by searching through the official arch linux packages: https://archlinux.org/packages/ Could also have tried AUR if hadn’t found it there :)
#!/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