13

/desktop/gnome/peripherals/keyboard/general/disable_indicator in gconf is set to yes

Additionally I restarted, but it's still there.

Maybe there is some setting buried in CCSM?


here is screenshot of what I'm talking about if it's not clear:

enter image description here

I want to remove it if possible

zetah
  • 9,673
  • 1
    What layouts show up if you click on the button? I don't remember but I think that button appeared for me after I added "USA Dvorak" to my list of Layouts [in gnome-keyboard-properties -> Layouts] – Matt Oct 23 '11 at 01:17
  • It does not show layout but drop-down menu for choosing layout: standard ASCII (USA) and my locale layout. Additionally there is menu shortcut for "keyboard preferences" and "show current layout". – zetah Oct 23 '11 at 09:09
  • Oh, so you have more than 1 keyboard layout or not? If you have 2, try removing one [temporarily]. Then reboot, or log out and in again maybe? – Matt Oct 23 '11 at 15:37
  • Hm... I don't want to remove my locale layout. I just want to remove this icon, while still being able to switch layouts. I guess this (gconf option) was working for 10.10 at least, but it's not working now. – zetah Oct 23 '11 at 15:58
  • Alright then, guess I can't help ya.. – Matt Oct 23 '11 at 21:01

6 Answers6

8

In version 13.10 and newer of Ubuntu you can just tick it off in Text 'entry settings' (last menu options when you click the keyboard icon). Tick off the 'show current keyboard' option.

Braiam
  • 67,791
  • 32
  • 179
  • 269
mths
  • 81
4

If you find that the keyboard indicator is useless, you can easily remove the applet from top panel by following the steps below:

  1. Open System Settings from Unity Launcher or from top-right corner shutdown menu. Then click on Text Entry

  2. In the bottom of the window you’ll see “Show current input source in the menu bar” which is enabled by default. Uncheck the box and the indicator applet will disappear instantly.

4

enter image description here

To completely remove the keyboard indicator we need to change one byte in the file

11.04 and before

/usr/lib/gnome-settings-daemon-2.0/libkeyboard.so

11.10 and after

/usr/lib/gnome-settings-daemon-2.0/libkeyboard.so

(make backup libkeyboard.so)

open file with root privileges through any hex editor (i use Bless)

and search for the byte signature FF 83 F8 01 0F

FF 83 F8 01 0F = if (g_slist_length (current_kbd_config.layouts_variants) > 1)

and change 01 to 02

FF 83 F8 02 0F

save file

FF 83 F8 02 0F = if (g_slist_length (current_kbd_config.layouts_variants) > 2)

if you have less than 3 keyboard layouts icon will be not shown

after this work need to reload gnome-settings-daemon

you can use reboot for this.

fossfreedom
  • 172,746
wep777
  • 56
3

You can very simply do this in Ubuntu 14.04 with Unity desktop for the current user in the terminal by issuing the following command.

gsettings set com.canonical.indicator.keyboard visible false

If the user is not logged into a currently running Unity session, you can set the setting by running this.

dbus-launch --exit-with-session gsettings set com.canonical.indicator.keyboard visible false
2

If you wished to remove the Keyboard icon and keep the Language selector then it is as follows:

@ Terminal

  1. find /usr/share/icons/ -name "input-keyboard.??g" -exec sudo mv {} {}.old \;

  2. for i in $(find /usr/share/icons/ -name '.old'); do sudo mv $i ${i%.}; done

If you wished to remove both the Keyboard icon and the Language selector then it is as follows:

  1. Open your Configuration Editor

  2. Click Apps --> gnome_settings_daemon --> plugins --> Keyboard --> Unchecked 'Active'

  3. Log out and log in. The Keyboard icon and the Language selector will not appear.

NB: If you couldn't locate your Keyboard at the Configuration Editor, then do this: http://gnome-look.org/content/show.php/?content=140209

all4naija
  • 1,554
  • I give you my bounty little too early. Apps/gnome_settings_daemon/plugins/Keyboard = 0 disables locale layout support, so that's not what I'm after. – zetah Oct 25 '11 at 17:31
  • "Flag" solution OTOH is best from provided answers, so I'll mark it as answered if there are no more answers in this couple of days. Cheers – zetah Oct 25 '11 at 17:45
0

It looks like "Keyboard Indicators plugins" may have been installed. Run the Software Center to check and remove it.

fragos
  • 3,503
  • Unfortunately "Keyboard Indicators plugins" is not installed. This indicator applet appeared right after I installed (and updated) 11.04, some days ago – zetah Oct 23 '11 at 09:06
  • Check out the dconf-editor under org - gnome - libgnomekbd - indicator. There are some parameters there that may be helpful, namely enabled-plugins and perhaps show-flags. It the only other thing I could think of although I have to admit being in guess mode because I can't duplicate you situation. – fragos Oct 23 '11 at 21:52
  • There is no such key in dconf-editor. Additionally I browsed for any trace of this indicator without success – zetah Oct 23 '11 at 22:14