Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cracktc/rofi-ts
translation plugin for rofi using translate-shell
https://github.com/cracktc/rofi-ts
Last synced: 2 months ago
JSON representation
translation plugin for rofi using translate-shell
- Host: GitHub
- URL: https://github.com/cracktc/rofi-ts
- Owner: CrackTC
- License: mit
- Created: 2023-12-15T05:47:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-05T22:13:26.000Z (10 months ago)
- Last Synced: 2024-04-05T23:24:28.620Z (10 months ago)
- Language: C
- Size: 1.48 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rofi-ts
Yet another translate-shell plugin for rofi. Borrowed quite a bit of code from [rofi-calc](https://github.com/svenstaro/rofi-calc)
![demo](img/demo.gif)
## Usage
```bash
rofi -show ts -modi ts
```Type the sentence to translate. By default, translate-shell guesses the language to translate from, and translates it to your system locale.
You can prefix your query with language info:
- `fr:en Bonjour` will translate 'Bonjour' from french to english
- `:fr Hello` will translate 'Hello' from your locale to french
- `fr: Nombre` will translate 'Nombre' from french to your locale## Advanced Usage
```bash
rofi -show ts -modi ts -ts-command "notify-send 'rofi-ts' '{result}'"
```This will show a notification with the translation result.
![demo-notify](img/demo-notify.png)