Skip to content

在 Linux 下复制文本并翻译,以系统通知显示翻译结果。

License

Notifications You must be signed in to change notification settings

maxuewei2/CopyTrans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CopyTrans

在 Linux 下复制文本并翻译,以系统通知显示翻译结果。

效果

安装

安装 xsel 或 xclip

sudo apt install xsel xclip

安装 notify-send

# 方式1
sudo apt install notify-send

# 方式2
sudo apt install libnotify-bin

# 方式3
# 使用 https://github.com/vlevit/notify-send.sh

安装 translate-shell

wget git.io/trans
chmod +x ./trans

给copytrans.sh添加执行权限

chmod a+x copytrans.sh

在系统快捷键设置中添加执行此脚本的快捷键。

使用

选中词或句子,按 Ctrl+C 复制,按设定的快捷键运行翻译脚本显示翻译。

About

在 Linux 下复制文本并翻译,以系统通知显示翻译结果。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages