Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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





I'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.

“maim (make image) takes screenshots of your desktop.” https://github.com/naelstrof/maim

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 :)


https://github.com/naelstrof/maim/ it's a screenshot utility



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: