xprop
xwininfo
xwininfo -tree
xwininfo -tree -root
Section "InputClass" Identifier "Keyboard0" MatchIsKeyboard "on" Option "XkbLayout" "pl" Option "XkbModel" "thinkpad" Option "XkbOptions" "caps:ctrl_modifier,compose:menu" EndSection- /etc/X11/xorg.conf.d/00-keyboard.conf on OpenBSD