Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahmoudelshimi/translate
A bash script that aims to translate given statements, from clipboard(selection) or enter them manual.
https://github.com/mahmoudelshimi/translate
dmenu open-source shell suckless translating unix
Last synced: about 2 months ago
JSON representation
A bash script that aims to translate given statements, from clipboard(selection) or enter them manual.
- Host: GitHub
- URL: https://github.com/mahmoudelshimi/translate
- Owner: mahmoudElshimi
- License: mit
- Created: 2023-10-20T13:10:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-14T18:50:36.000Z (11 months ago)
- Last Synced: 2024-02-14T20:22:32.824Z (11 months ago)
- Topics: dmenu, open-source, shell, suckless, translating, unix
- Language: Shell
- Homepage:
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
translate - Translate statements using dmenu with translate-shell or sdcv
=========================================================================![Screenshot of translate](screenshots/translate.gif)
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
------------
- [dmenu](https://tools.suckless.org/dmenu/) with [bidi](https://tools.suckless.org/dmenu/patches/bidi/dmenu-bidi-20210723-b34d318.diff) patch.
- [sxhkd](https://github.com/baskerville/sxhkd/)
- [sdcv](https://github.com/Dushistov/sdcv/)
- [translate-shell](https://github.com/soimort/translate-shell/)
- [xclip](https://github.com/astrand/xclip/)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).