I'm looking for a way to display the current keyboard layout chart from the command line.

Unfortunately xkbprint does not display utf-8 characters correctly (AFAICT).

In gnome, it is possible to click on the keyboard layout indicator applet and then "Show Layout Chart", which does the same thing as going through the menus of gnome-control-center (btw, gnome-control-center keyboard is not an acceptable solution), so there must be a way to trigger an event that would pop up this window, right?

Note that most of the time I don't use gnome-panel.

gkbd-keyboard-display -l keyboard_layout[,variant]

For example, to show greek keyboard layout chart from command line:

gkbd-keyboard-display -l gr

To show the AltGr International keyboard variant (the one based on US layout, can do Spanish, German etc)

gkbd-keyboard-display -l us,altgr-intl

It's not documented anywhere. You have to read the source code to find the parameters.

  • 1
    Fantastic, thanks a lot! I've been looking for this for several hours! – Metaxal May 3 '14 at 14:58
  • +1 I had to install gkbd-keyboard-display from package gkbd-capplet.. – Håkon Hægland May 19 '14 at 22:20
  • nice and simple :) – A.B. Apr 22 '15 at 7:49
  • The command gkbd-keyboard-display -l us,altgr-intl causes a segmentation fault for me. gkbd-keyboard-display -l "us(altgr-intl)" works, though. – Guildenstern Nov 6 '17 at 22:40

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.