[libnotify] Highlight and Google Translate Any Text
Posted: Wed Dec 03, 2014 11:31 am
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 :
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.
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. 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.