scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 6661b1080f8858158f52700c4dec4de0c1bf978b
parent 41b22fc7bd617e87fa85e763806fa381882e0f60
Author: Sebastiano Tronto <sebastiano.tronto@gmail.com>
Date:   Thu, 10 Jun 2021 20:43:09 +0200

Added translate

Diffstat:
MMakefile | 1+
Atranslate | 10++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -28,6 +28,7 @@ SCRIPTS = addressgrep \ spawn \ templess \ togglemute \ + translate \ urlgrep \ volume \ websearch \ diff --git a/translate b/translate @@ -0,0 +1,10 @@ +#!/bin/sh + +# Opens google translate + +translator="https://translate.google.com/" +from=$1 +to=$2 + +shift 2 +open-url "${translator}?sl=${from}&tl=${to}&text=$@&op=translate"