aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-06-10 20:43:09 +0200
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-06-10 20:43:09 +0200
commit6661b1080f8858158f52700c4dec4de0c1bf978b (patch)
tree6b1e6942948925a91fee3e3fd0f1b0a42922b0ce
parent41b22fc7bd617e87fa85e763806fa381882e0f60 (diff)
downloadscripts-6661b1080f8858158f52700c4dec4de0c1bf978b.tar.gz
scripts-6661b1080f8858158f52700c4dec4de0c1bf978b.zip
Added translate
-rw-r--r--Makefile1
-rwxr-xr-xtranslate10
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9e82324..827f0bd 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,7 @@ SCRIPTS = addressgrep \
28 spawn \ 28 spawn \
29 templess \ 29 templess \
30 togglemute \ 30 togglemute \
31 translate \
31 urlgrep \ 32 urlgrep \
32 volume \ 33 volume \
33 websearch \ 34 websearch \
diff --git a/translate b/translate
new file mode 100755
index 0000000..9415158
--- /dev/null
+++ b/translate
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3# Opens google translate
4
5translator="https://translate.google.com/"
6from=$1
7to=$2
8
9shift 2
10open-url "${translator}?sl=${from}&tl=${to}&text=$@&op=translate"

Generated with cgit - Back to sebastiano.tronto.net