just click the image below to watch it
- press
ctrl + alt + q
to translate the selected text. (english to spanish or vice versa) - press
ctrl + alt + g
to check the selected text grammar. - press
ctrl + alt + s
to search the selected text in google. - press
ctrl + alt + c
to look up the selected text in the dictionary. - press
ctrl + alt + a
to look up the selected text in the thesaurus. (synonyms and antonyms)
- first let's install some dependencies:
sudo apt-get update
sudo apt-get install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-keybinder-3.0 libcairo2-dev libxt-dev libgirepository1.0-dev
- as we'll have a window pop up every time we call a functionality, we need to install the following dependency:
sudo apt-get update
sudo apt-get upgrade
sudo apt install gnome-shell-extension-manager
-
then go to this link: https://extensions.gnome.org/extension/5410/grand-theft-focus/ (gnome extensions website) and just turn it on.
-
install the required python packages:
cd path_to_root_folder
pip install -r requirements.txt
- create .env file with openai api and deepl api keys:
echo "OPENAI_API_KEY='your_api_key'" > .env
echo "DEEPL_API_KEY='your_api_key'" >> .env
echo "MERRIAM_WEBSTER_API_KEY='your_api_key'" >> .env
- finally we can run the script:
python3 main.py
6.1 if you want to run it in the background at startup, i did this from an .sh file: