Next, copy the script code below: #!/usr/bin/env bash install them using the following command: sudo apt-get install libnotify-bin wget xsel To be able to use the script, firstly install libnotify-bin (so the script can send desktop notifications), wget (to retrieve the translation from Google) and xsel (which is used to get the currently highlighted text).
Setting up and configuring the 'translate highlighted text' script