Posts with the tag xorg:

Keyboard layout in xorg

In this post, we will look at how to add a second keyboard layout in under Xorg and set up a keyboard shortcut to switch between them. We will also see how to remap keys. You can check the current keyboard layout used by the xorg by running setxkbmap -query. You can use the same command to modify the layouts and options by using -layout or -option switches. As mentioned in manual, -option will append the passed in arguments to already set options. The alternative is to create a xorg configuration file and place it in xorg.conf directory. But how do we know what layout to chose or what options to set?