Translate text from your selection clipboard!
Find a file
2023-11-04 18:02:08 +05:30
LICENSE.txt add 2 clause BSD license 2023-11-03 23:00:40 +05:30
README.md put usage in code blcoks 2023-11-04 18:02:08 +05:30
select2translate.sh first commit 2023-11-03 22:05:54 +05:30

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)