Thursday, May 2, 2024
25
rated 0 times [  25] [ 0]  / answers: 1 / hits: 6132  / 2 Years ago, sun, august 28, 2022, 6:39:32

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.


More From » command-line

 Answers
4
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 US AltGr International keyboard variant:


gkbd-keyboard-display -l "us(altgr-intl)"

For a complete list of layouts, see https://manpages.ubuntu.com/manpages/impish/en/man7/xkeyboard-config.7.html#layouts


[#25473] Monday, August 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ameatoes

Total Points: 321
Total Questions: 106
Total Answers: 112

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
;