diff --git a/README.md b/README.md index c5aa429..53b0029 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ ./aitranslate -once // 只运行翻译一次,完成后退出 ``` +## Tips +> manjaro 可以开启`clipman`设置中的 `同步鼠标选择区`,实现选中自动翻译 + ## 依赖 `xsel`或`xclip` ``` diff --git a/aitranslate.go b/aitranslate.go index a3eaeb3..4a5b441 100644 --- a/aitranslate.go +++ b/aitranslate.go @@ -34,7 +34,7 @@ func main() { text = getClipboardString() if !once { for { - time.Sleep(time.Millisecond * 50) + time.Sleep(time.Millisecond * 150) newText := getClipboardString() if !whatlang.IsEnglish(newText) { continue