Gnome Shell Extension: 一键开关 popup-dict
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
icons
screenshots Add screenshots Jan 2, 2018
.editorconfig
.gitignore
Development.md
LICENSE
README.md
extension.js Restore running state after unlock screen. Jan 2, 2018
metadata.json
notification.js
package.sh Initialize Dec 13, 2017
popup_dict.js Fix startup check failure. Fix #1 Jul 26, 2018
stylesheet.css Initialize Dec 13, 2017

README.md

popup-dict-switcher

Gnome 扩展,一键开关 popup-dict

点击状态栏图标即可切换状态

on off

安装

确保已安装 popup-dict,且 popup-dict 命令在用户的 PATH

在线安装(推荐)

https://extensions.gnome.org/extension/1349/popup-dict-switcher/

在线安装方式便于升级

手动

  1. 下载文件并移动/链接到用户扩展目录(~/.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"
  2. 重启 Gnome Shell(Alt + F2,输入 r,回车);

  3. 启用扩展。可通过以下方式:

Todo

  • 优化 icon 样式
  • logging

Licenses

This project is licensed under the terms of the MIT license.