Is there a way to show flags instead of labels in the language indicator in the top panel, in gnome-shell (3.28)?

I found this setting in dconf-editor: /org/gnome/libgnomekbd/indicator/show-flags But it's ineffective, nothing changes if I set that to true.

Is there a way to do this?


Here is a hacky workaround.

You need to change the abbreviations of layouts (e.g. "en") shown in the keyboard layout indicator of GNOME top bar following this very detailed answer by @MathCubes.
As mentioned in the answer the <shortDescription> tags in the /usr/share/X11/xkb/rules/evdev.xml file dictate the abbreviations. Change the <shortDescription> labels associated to your chosen layouts (e.g. en) to suitable flag emojis (you can get them from Get Emoji or Emojipedia).

Since GNOME shell v3.28 supports global colour emojis, you should see coloured flags instead of labels after you reboot or re-login or restart the GNOME Shell.

enter image description here
(after replacing en by 🇬🇧 for the "English (UK)" layout)

  • 1
    This is AWESOME! Thank you very much! I wish I could make an extension for this. – Jimmy Scionti Sep 2 '18 at 7:39
  • 1
    Reboot is not required. It's enough to logout & login to take changes in effect. – ks1322 May 4 '20 at 18:38
  • @ks1322 Yes, even restarting the GNOME Shell is enough. – pomsky May 4 '20 at 18:44
  • Thanks!!! Great solution! – Qui-Gon Jinn Oct 4 '20 at 0:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.