Translate Any Text You Select On Your Linux Desktop With A Keyboard Shortcut And Notifications

I recently stumbled upon an interesting tiny old script which can translate any text you select. After highlighting the text, be it in a web browser, Libreoffice or PDF document and so on, upon using a keyboard shortcut, its translation is displayed in a desktop notification.

Command line:

Subscribe:
like facebook:
G+:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

3 Comments

Abdul Munir

May 19, 2020

I found the full answer in the article
http://www.webupd8.org/2016/03/translate-any-text-you-select-on-your.html

Reply

Denis Física

May 19, 2020

It does not work with the Foxit PDF reader. I tried to solve the problem with the 'xdotool' program but it did not work either. I had to change from 'xsel -o' to 'xsel -b' and copy the text before to work with Foxit. I'm using Ubuntu 18.04.

Reply

morozione

May 19, 2020

Yo dude, can't copy your long script. Can you publish the script at comments? Thanks)

Reply

Leave a Reply