Skip to content

Translate the clipboard through DeepL website, like the DeepL app (for Linux).

License

Notifications You must be signed in to change notification settings

masan4444/deepl-clip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

deepl-clip

The simple shell-script which translate the clipboard through the DeepL website, like the DeepL app.

demo

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)

#!/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

shortcut

Links

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

About

Translate the clipboard through DeepL website, like the DeepL app (for Linux).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages