/Deepl-linux

DeepL(https://www.deepl.com/) Integration for Linux. Select text in any application and simply press Ctrl+C and another shortcut to translate it.

Primary LanguageGo

DEPRECATION NOTICE

Go webview is not very suitable for desktop apps, so I reimplement this repo with Electron.

See this repo.

About

A client for deepl in Linux, using webview.

Tested under ubuntu 20.04 only.

./demo.png

How to use

install dependencies

sudo apt install libwebkit2gtk-4.0-dev xsel xdotool golang
  • 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:

    go version
        

    You can download prebuilt binaries from https://golang.org

build

cd /path/to/someDir
git clone https://github.com/kumakichi/Deepl-linux.git
cd Deepl-linux
make

modify loader.sh if you need to

WIDTH=800 # window width
HEIGHT=600 # window height

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