fogary
Keyboard layouts and switching between them is managed by the Xorg server. Xorg server uses X keyboard extension (XKB) to define keyboard layouts.
Current keyboard config is stored in /etc/X11/xorg.conf.d/00-keyboard.conf
file.
The X keyboard extension - XKB - defines how keyboard codes are handled in Xorg. XKB allows using multiple keyboard layouts in X and switching between them.
By default, XKB is stored in /usr/share/X11/xkb
directory. It's XKB base directory.
Keyboard layouts and switches may be defined, changed, set by various commands:
setxkbmap
xmodmap
xkbcomp
localectl
(partially)
- others
See commands' man
manuals for more details.