The script is based on Deepl-linux-electron: https://github.com/kumakichi/Deepl-linux-electron
The shortcut for the programm must be deafult: Control_L+Shift_L+F9
.
- Enshure that
Deepl-Linux-Electron.AppImage
file is executable. - Create
~/.local/share/applications/deepl.desktop
file with the following code:[Desktop Entry] Comment=Deepl Linux Electron Exec=/home/kama/Programs/deepl/Deepl-Linux-Electron.AppImage GenericName=Deepl-Linux-Electron Name=Deepl Linux Electron Type=Application Categories=Education; Icon=/home/kama/Programs/deepl/tray-icon.svg Keywords=Deepl;Translator;translate;Language
- Add Startup application for ubuntu. Set up the following command
gtk-launch deepl
. deepl refers todeepl.desktop
.
- Open
Settings > Keyboard > Keyboard Shortcuts > Custom Shortcuts
. - Bind the following command for desired hotkey. For example
Shift+F1
:bash /home/kama/Programs/deepl/deepl-hotkey.sh
For the script works correctly you need install the following packeges:
g3kb-switch: https://github.com/lyokha/g3kb-switch libfuse2 xsel xdotool
sudo apt-get update
sudo apt install libfuse2 -y
sudo apt-get install xsel -y
sudo apt-get install xdotool -y