I would like to remove several of the Indicators that usually appear in the upper-right-hand side of the login screen. In particular, I would like to remove the accessibility, keyboard layout, power, and sound indicators, although it would be nice to know how to generically add or remove indicators. How can I do this?
Asked
Active
Viewed 2,392 times
11
2 Answers
8
One way that I have tried in Ubuntu 14.04 using LightDM (Default); Using Some config files stored in /usr/share/unity/indicators/
Let's say you want to hide keyboard indicator:
Open corresponding file for editing
sudo nano /usr/share/unity/indicators/com.canonical.indicator.keyboard
Comment object paths for the mode you want to hide in, example this will hide it in the greeting screen and lock screen
[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
Reboot or just restart display manager
sudo service lightdm restart

user.dz
- 48,105
-
1Aaa! This is the first thing that I've tried that works! However, I don't see either the wireless or the accessibility indicators present, both of which I want to hide. Would you happen to know where these are? – fouric May 13 '15 at 02:37
-
I confirm that, network indicator which is created by
nm-applet
and I'm not sure about accessibility indicator. – user.dz May 15 '15 at 16:52
6
Coming with different approach:
$ 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
...
<key name="indicators" type="as">
<default>['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator.
power', 'com.canonical.indicator.sound', 'application']</default>
<summary>Which indicators to load</summary>
</key>
...
unity-greeter
is run by lightdm
user! Instead of looking around for a way to change the dconf
setting for that ghost user. I override the default. Tested in Ubuntu 14.04 64bit (VirtualBox).
Create new
dconf
override filesudo nano /usr/share/glib-2.0/schemas/90_unity-greeter.gschema.override
Put these two lines in it with indicator you want to keep:
[com.canonical.unity-greeter] indicators=['com.canonical.indicator.session']
Default is:
['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator.power', 'com.canonical.indicator.sound', 'application']
Recompile
glib
schemassudo glib-compile-schemas /usr/share/glib-2.0/schemas/
Restart the display manager
sudo service lightdm restart

user.dz
- 48,105
-
1This one allows me to remove the accessibility (ug-accessibility) and wireless (application) indicators. Between this answer and your previous one, it is now possible to remove every one of the preinstalled indicators. – fouric May 15 '15 at 21:13
-
@InkBlend, Actually this covers all indicators with single setting point. No need for my other partial solution – user.dz May 16 '15 at 07:54
/etc/lightdm/
, but I don't remember which one and can't check as I am sitting on a Windows machine at the moment. Read all files - At least one should contain a section about the indicators you mentioned. Copy the file as backup and find out how to edit it. Or post its content (as edit to your question!) and I will have a look. You have to leave me a comment (@ByteCommander) then... – Byte Commander Apr 02 '15 at 22:43/etc/lightdm
:lightdm.conf
,lightdm-gtk-greeter.conf
,lightdm-gtk-greeter-ubuntu.conf
, andlightdm-webkit-greeter.conf
. I have no idea what the difference between any of them is, but I did try to disable the login screen clock through each of them, and it didn't work. – fouric May 13 '15 at 02:41lightdm-gtk-greeter.conf
the lineshow-indicators=~host;~spacer;~a11y;~session;~language;~a11y;~clock;~power;
should be responsible for which indicators are displayed. You could try and remove items from that list and see which indicators will disappear. I mean "clock" is clear, but no idea what e.g. "a11y" stands for... Doing a bit more researching. – Byte Commander May 14 '15 at 10:33