I have a device that outputs a limited number of keycodes (for example a keyboard-wedge barcode scanner) and I want to know what those keycodes will type on all possible keyboard layouts. I'd like to write an X11 client that sets the keyboard layout to each installed keymap and then records the Unicode received for each keypress from the device.
How do I get the list of all installed keyboard layouts?