Go webview is not very suitable for desktop apps, so I reimplement this repo with Electron.
See this repo.
A client for deepl in Linux, using webview.
Tested under ubuntu 20.04 only.
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
cd /path/to/someDir
git clone https://github.com/kumakichi/Deepl-linux.git
cd Deepl-linux
make
WIDTH=800 # window width
HEIGHT=600 # window height
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
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