Skip to content

mahmoudElshimi/translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages