mahmoudElshimi / translate

A bash script that aims to translate given statements, from clipboard(selection) or enter them manual.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

translate - Translate statements using dmenu with translate-shell or sdcv

Screenshot of translate

About

  • 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.

Requirements

Feel free to install them using your distro's package manager or from their repos.

To Do

  • Replace translate-shell with another minimalist and efficient tool.

Running

  • 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) 

Configuration

  • You can change languages or dictionaries in translate to match your specifications, see trans(1), and sdcv(1).

About

A bash script that aims to translate given statements, from clipboard(selection) or enter them manual.

License:MIT License


Languages

Language:Shell 100.0%