Last active
August 29, 2015 14:14
-
-
Save m13m/9f298d6fd97a1f77f0c4 to your computer and use it in GitHub Desktop.
Google Translate script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#First Install this programs | |
sudo apt-get install libnotify-bin xsel | |
#Paste this code into a file and move it to the bin folder | |
#!/usr/bin/env bash | |
notify-send -u critical "$(xsel -o)" "$(wget -U "Mozilla/5.0" -qO - "http://translate.google.com/translate_a/t?client=t&text=$(xsel -o | sed "s/[\"'<>]//g")&sl=auto&tl=hi" | sed 's/\[\[\[\"//' | cut -d \" -f 1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment