Yandex Translation Script
Usage: yt [-o|-O|-z|-n] [-f from_lang] [-t to_lang] [-p http://proxy:port] -i|-I|--|text
-o - output to primary selection
-O - output to clipboard
-z - usage zenity for output
-n - usage notify-send for output
-f from_lang - source language (default: auto)
-t to_lang - destination language (default: ru)
-p proxy - use proxy
-i - input from primary selection
-I - input from clipboard
-- - read standard input
text - text for translate (only last arg)
-h - this help
bash- на нем написан сам скрипт :-Dsed,curl,tr- нужны всегдаcat- вывод хелпа и ввод сstdinzenity- при использования ключа запуска-znotify-send- при использования ключа запуска-nxsel- при использовании ключей запуска-o,-O,-i,-I
Идея почерпнута из статьи http://habrahabr.ru/post/256063/ .