安装图标管理器:
gnome-shell-extension-icon-manager.noarch A gnome-shell extension to manage icons in top bar
yum -y install gnome-shell-extension-icon-manager
安装dconf编辑器, 类似windows下的注册表
dconf-editor.i686 : Configuration editor for dconf
yum -y install dconf-editor
打开dconf-editor
按 ALT + F2 输入 "dconf-editor" 找到 org > gnome > shell > extensions > icon-manager
设置 top-bar 的值, 把你想要加入到系统托盘的图标, 加入到top-bar中;
如果想把系统自带的系统托盘图标移出, 也请把它加入到top-bar中。
系统自带的图标有: (a11y (accessibility icon), display, keyboard, volume, bluetooth, network, battery)
icon-manager的作用就是: “已存在的移出, 不存在的加入”。
这儿是我的示例:
我这儿始终不能把empathy加入到系统托盘, 不知道是什么原因, 以后再找原因了。
设置好后, 还需要激活icon-manager这个扩展.
按 ALT + F2 输入 "dconf-editor" 找到 org > gnome > shell
[‘icon-manager@krajniak.info']
如果你有多个扩展要激活, 把要激活的扩展名加入到enabled-extensions中, 这是一个数组类型
如: [‘icon-manager@krajniak.info', 'ibus-indicator@example.com']
怎么知道你有哪些扩展, 以及扩展名是什么呢?
系统扩展:
ls /usr/share/gnome-shell/extensions/
ibus-indicator@example.com icon-manager@krajniak.info
用户自家义扩展:
ls ~/.local/share/gnome-shell/extensions/
示例: