1
0
This commit is contained in:
dtb
2022-05-18 17:44:50 -04:00
parent 63748f0746
commit e0540495a0
54 changed files with 1895 additions and 0 deletions

11
bin/autotranslate Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh -x
[ -n "$dmenu" ] || dmenu=dmenu
lang="$LANG"
# lots of potentially wrong assumptions here
printf "%s\n" "$lang" | grep "_" >/dev/null 2>&1 \
&& lang="$(printf "%s\n" "$lang" | cut -d '_' -f 1)" \
|| lang=en
printf "%s\n" "$(xclip -o)" | translate auto $lang | "$($dmenu -p "Press Escape to dismiss.")"