This file contains hidden or 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
1 - Устанавливаем обёртку над гугл транслейт | |
https://github.com/soimort/translate-shell | |
2 - Устанавливаем необходимые пакеты: | |
sudo apt-get install libnotify-bin xsel | |
3 - Создаём файл с именем sel-transl и копируем в него | |
#!/usr/bin/env bash | |
notify-send -u critical "$(xsel -o)" "$(xsel -o | trans -no-ansi -b :ru)" | |