Place the script at ~/.local/share/bin
, run chmod +x
on it and create a keyboard shortcut which runs the script (I personally use Win+T).
Installing dependencies on Debian:
sudo apt install gnome-screenshot tesseract-ocr # tesseract-ocr-eng tesseract-ocr-rus etc.
Поместите скрипт в ~/.local/share/bin
, запустите chmod +x путь_к_файлу
и задайте в настройках комбинацию клавиш, что будет вызывать скрипт.
(я лично использую Win+T)
Как установить зависимости на Debian:
sudo apt install gnome-screenshot tesseract-ocr # tesseract-ocr-eng tesseract-ocr-rus etc.
P.S. В
notify-send
строку можно поменять, например, на"Готово. Результат анализа скопирован в буфер обмена"