Deepl-linux
Deepl-linux copied to clipboard
DeepL(https://www.deepl.com/) Integration for Linux. Select text in any application and simply press Ctrl+C and another shortcut to translate it.
-
DEPRECATION NOTICE
Go webview is not very suitable for desktop apps, so I reimplement this repo with [[https://www.electronjs.org/][Electron]].
See [[https://github.com/kumakichi/Deepl-linux-electron][this repo]].
-
About A client for [[https://www.deepl.com/translator][deepl]] in Linux, using [[https://github.com/zserge/webview][webview]].
Tested under ubuntu 20.04 only.
[[./demo.png]]
-
How to use
** install dependencies
#+BEGIN_SRC sh sudo apt install libwebkit2gtk-4.0-dev xsel xdotool golang #+END_SRC
-
xsel
clipboard needs it
-
xdotool
active this app when do translating work in other apps
-
golang
Go programming language compiler, 1.14 or higher is needed
Check it: #+begin_src go go version #+end_src
You can download [[https://golang.org/dl/][prebuilt binaries]] from [[https://golang.org][https://golang.org]]
** build #+BEGIN_SRC sh cd /path/to/someDir git clone https://github.com/kumakichi/Deepl-linux.git cd Deepl-linux make #+END_SRC
** modify loader.sh if you need to
#+BEGIN_SRC sh WIDTH=800 # window width HEIGHT=600 # window height #+END_SRC
** add system shortcut
in ubuntu
settings => keyboard shortcut => Add Custom Shortcut
add this command: /path/to/someDir/Deepl-linux/loader.sh
I set this command with shortcut Ctrl-Alt-D
** use it
select text in any application, press Ctrl+c to copy selected content into clipboard, then press the shortcut you just defined for loader.sh, here I press Ctrl-Alt-D