Page 1 of 1

[libnotify] Highlight and Google Translate Any Text

Posted: Wed Dec 03, 2014 11:31 am
by stark
Source: Highlight and Google Translate Any Text in Linux - Lifehacker

1. Install 'dunst' or whatever notifier you prefer and make sure you have 'xsel' installed.

2. Get the Script :

Code: Select all

curl http://sprunge.us/aGMY > ~/bin/goot
3. Make it executable: 'chmod +x ~/bin/goot'

3. Bind it to a key combo.

4. Highlight any text and press your defined keybind.

Profit!

The script will auto-detect the language you are selecting (see sl=auto)

By default, the script translates in English, to change the translated output to a language of your choice modify 'tl=eng' in the script (example-'tl=it' for Italian).

List of Supported Languages and respective language codes.

Re: [libnotify] Highlight and Google Translate Any Text

Posted: Wed Dec 03, 2014 10:25 pm
by Dr_Chroot
0_0 Fantastic! Thanks stark :) I have had many uses for this utility over the years... if only I had it then.

Re: [libnotify] Highlight and Google Translate Any Text

Posted: Fri Dec 05, 2014 12:37 pm
by stark
Better Late Than Never ;)

Re: [libnotify] Highlight and Google Translate Any Text

Posted: Thu Apr 02, 2015 12:14 pm
by machinebacon
I must say, this is damned good, thanks starkey!

Re: [libnotify] Highlight and Google Translate Any Text

Posted: Thu Apr 02, 2015 3:01 pm
by simgin
Absolutely brilliant Starkey o.O

simon

Re: [libnotify] Highlight and Google Translate Any Text

Posted: Fri Apr 03, 2015 2:57 am
by nova
Спасибо Старк!