Gnome 扩展,一键开关 popup-dict
点击状态栏图标即可切换状态
确保已安装 popup-dict,且 popup-dict
命令在用户的 PATH
中
https://extensions.gnome.org/extension/1349/popup-dict-switcher/
在线安装方式便于升级
-
下载文件并移动/链接到用户扩展目录(
~/.local/share/gnome-shell/extensions/
):EXTENSION_DIR="$HOME/.local/share/gnome-shell/extensions/popup-dict-switcher@bianjp.com" rm -rf "$EXTENSION_DIR" # 下载压缩包,解压到扩展目录 curl -Lo popup-dict-switcher-master.zip https://github.com/bianjp/popup-dict-switcher/archive/master.zip unzip popup-dict-switcher-master.zip mv popup-dict-switcher-master "$EXTENSION_DIR" rm popup-dict-switcher-master.zip # 或 clone 仓库,链接到扩展目录 git clone https://github.com/bianjp/popup-dict-switcher.git ln -s "${PWD}/popup-dict-switcher" "$EXTENSION_DIR"
-
重启 Gnome Shell(
Alt + F2
,输入r
,回车); -
启用扩展。可通过以下方式:
- Gnome Tweak Tool
- https://extensions.gnome.org/local/
- 命令行:
gnome-shell-extension-tool -e popup-dict-switcher@bianjp.com
- 优化 icon 样式
- logging
This project is licensed under the terms of the MIT license.