https://github.com/masan4444/deepl-clip
Translate the clipboard through DeepL website, like the DeepL app (for Linux).
https://github.com/masan4444/deepl-clip
deepl linux shell shell-script
Last synced: about 2 months ago
JSON representation
Translate the clipboard through DeepL website, like the DeepL app (for Linux).
- Host: GitHub
- URL: https://github.com/masan4444/deepl-clip
- Owner: masan4444
- License: mit
- Created: 2020-05-27T12:52:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T02:42:23.000Z (about 4 years ago)
- Last Synced: 2023-03-06T05:56:43.107Z (over 3 years ago)
- Topics: deepl, linux, shell, shell-script
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 19
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deepl-clip
The simple shell-script which translate the clipboard through the DeepL website, like the [DeepL app](https://www.deepl.com/app).

This runs **on Linux**, and automatically removes the line feed code !
This does **NOT** run on Mac and BSD.
## Dependencies
- xclip
- nkf
- xdg-open
## Install
### Ubuntu (Debian)
```
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
```
### CentOS (RedHat)
```
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
```
## Usage
Edit language setting ([deepl-clip.sh](https://github.com/masan4444/deepl-clip/blob/master/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

## Links
Twitter: https://twitter.com/444413131313/status/1265824222229590017