Translate text from your selection clipboard!
- Shell 100%
| LICENSE.txt | ||
| README.md | ||
| select2translate.sh | ||
Select2Translate - Translate text from your selection clipboard!
Usage: select2translate [options]
OPTIONS
-h, --help show usage instructions (this)
-i, --instance mozhi instance to use for translations (default: https://mozhi.aryak.me)
-s, --source source language to use (default: auto)
-t, --target target language to use (default: en)
-g, --get-cmd command used to retrieve selected text (default: xclip on xorg and wl-clipboard/wl-paste on wayland)
-p, --put-cmd command used to copy translated text (default: xclip on xorg and wl-clipboard/wl-paste on wayland)
Dependencies:
- bash
- jq
- xclip or wl-clipboard (unless get/put commands manually specified)
- curl
- notify-send (part of libnotify)