1
0

python reliance. bleh

This commit is contained in:
dtb 2022-07-21 18:52:36 -04:00
parent dbbfefb2b4
commit a018ed7506

View File

@ -1,11 +0,0 @@
#!/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.")"