- A bash script that aims to translate given statements, from clipboard(selection) or enter them manual.
- If there is a network connection it will use google's engine(through translate-shell), else it will use a dictionary (through sdcv).
- It uses dmenu with sxhkd as a user interface.
Feel free to install them using your distro's package manager or from their repos.
- Replace translate-shell with another minimalist and efficient tool.
- Clone the repo
$ git clone https://github.com/mahmoudElshimi/translate.git
- Add permission
$ cd translate
$ chmod +x translate
- Add the following lines to sxhkdrc file
super + shift + t
/path/to/translate/translate $(xclip -o)
- You can change languages or dictionaries in translate to match your specifications, see trans(1), and sdcv(1).