CrackTC / rofi-ts

translation plugin for rofi using translate-shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rofi-ts

Yet another translate-shell plugin for rofi. Borrowed quite a bit of code from rofi-calc

demo

Usage

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

rofi -show ts -modi ts -ts-command "notify-send 'rofi-ts' '{result}'"

This will show a notification with the translation result.

demo-notify

About

translation plugin for rofi using translate-shell

License:MIT License


Languages

Language:C 81.9%Language:M4 13.7%Language:Nix 3.0%Language:Makefile 1.4%