Add keymap component

Adding a new keymap component that will
indicate the current keyboard layout (language)
and variant if any was set. I use the
standard X11 XKB APIs to retrieve and parse
the xkb_symbols set with setxkbmap.
This commit is contained in:
Michael Buch
2018-05-23 07:16:30 +01:00
committed by Aaron Marcher
parent 57f69e900b
commit 943b42de05
4 changed files with 103 additions and 0 deletions

View File

@ -34,6 +34,8 @@ static const char unknown_str[] = "n/a";
* ipv6 IPv6 address interface name (eth0)
* kernel_release `uname -r` NULL
* keyboard_indicators caps/num lock indicators NULL
* keymap layout (variant) of current NULL
* keymap
* load_avg load average NULL
* netspeed_rx receive network speed interface name (wlan0)
* netspeed_tx transfer network speed interface name (wlan0)