diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 1 | ||||
| -rwxr-xr-x | translate | 10 |
2 files changed, 11 insertions, 0 deletions
| @@ -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 | |||
| 5 | translator="https://translate.google.com/" | ||
| 6 | from=$1 | ||
| 7 | to=$2 | ||
| 8 | |||
| 9 | shift 2 | ||
| 10 | open-url "${translator}?sl=${from}&tl=${to}&text=$@&op=translate" | ||
