The simple shell-script which translate the clipboard through the DeepL website, like the DeepL app.
This runs on Linux, and automatically removes the line feed code !
This does NOT run on Mac and BSD.
- xclip
- nkf
- xdg-open
sudo apt install xclip nkf
curl -OL https://github.com/masan4444/deepl-clip/releases/latest/download/deepl-clip.sh
chmod u+x deepl-clip.sh
yum install epel-release
yum install xclip nkf
curl -OL https://github.com/masan4444/deepl-clip/releases/latest/download/deepl-clip.sh
chmod u+x deepl-clip.sh
Edit language setting (deepl-clip.sh)
#!/bin/sh
from=en
to=ja # de, fr, es, etc. <-------- change
browser=xdg-open
Open deepl website and translate the clipboard
sh deepl-clip.sh
You can call this shell-script from a keyboard shortcut
Twitter: https://twitter.com/444413131313/status/1265824222229590017