在Ubuntu(Gnome桌面)设置StarDict词典的开启快捷键

因为没找到 StarDict 的快捷打开/隐藏键,每次都要用鼠标点,觉得很不爽,于是找了一下,发现有个命令行版本,使用 StarDict 的词库。

1
2
3
4
5
6
7
8
9
10
11
12
13
sudo apt install sdcv

$ sdcv -h
sdcv - console version of StarDict.
Usage: sdcv [OPTIONS] words
-h, --help display this help and exit
-v, --version display version information and exit
-l, --list-dicts display list of available dictionaries and exit
-u, --use-dict bookname for search use only dictionary with this bookname
-n, --non-interactive for use in scripts
--utf8-output output must be in utf8
--utf8-input input of sdcv in utf8
--data-dir path/to/dir use this directory as path to stardict data directory

然后在Ubuntu设置中找到 键盘 -> 快捷键 -> 自定义快捷键 ,添加一个快捷键命令: gnome-terminal --command sdcv ,即可通过快捷键启动一个终端查词了

Read more
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×