如何在登录屏幕中添加或操作应用程序/系统指示器?
我想删除通常出现在登录屏幕右上角的几个指标。 特别是,我想删除辅助function,键盘布局,电源和声音指示器,虽然知道如何一般添加或删除指示器会很好。 我怎样才能做到这一点?
采用不同的方法:
$ pstree init─┬─... ├─lightdm─┬─Xorg │ ├─lightdm─┬─lightdm-greeter───unity-greeter───4*[{unity-greeter}] ... $ dpkg -L unity-greeter ... /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml ... $ more /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml ... ['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator. power', 'com.canonical.indicator.sound', 'application'] Which indicators to load ...
unity-greeter
由lightdm
用户运行! 而不是四处寻找改变该ghost用户的dconf
设置的方法。 我覆盖默认值。 在Ubuntu 14.04 64bit(VirtualBox)中测试。
-
创建新的
dconf
覆盖文件sudo nano /usr/share/glib-2.0/schemas/90_unity-greeter.gschema.override
将这两行放入您想要保留的指标中:
[com.canonical.unity-greeter] indicators=['com.canonical.indicator.session']
默认是:
['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator.power', 'com.canonical.indicator.sound', 'application']
-
重新编译
glib
模式sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
-
重启显示管理器
sudo service lightdm restart
我在Ubuntu 14.04中使用LightDM(默认)尝试过的一种方法; 使用存储在/usr/share/unity/indicators/
一些配置文件
假设你要隐藏键盘指示器:
-
打开相应的文件进行编辑
sudo nano /usr/share/unity/indicators/com.canonical.indicator.keyboard
-
您要隐藏的模式的注释对象路径,例如,这将在问候屏幕和锁定屏幕中隐藏它
[Indicator Service] Name=indicator-keyboard ObjectPath=/com/canonical/indicator/keyboard Position=80 [desktop] ObjectPath=/com/canonical/indicator/keyboard/desktop #[desktop_greeter] #ObjectPath=/com/canonical/indicator/keyboard/desktop_greeter #[desktop_lockscreen] #ObjectPath=/com/canonical/indicator/keyboard/desktop_lockscreen [ubiquity] ObjectPath=/com/canonical/indicator/keyboard/desktop
-
重启或重新启动显示管理器
sudo service lightdm restart