title: How do I enumerate all available keyboard layouts in X.org?
body: <p>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.</p>
  
  <p>How do I get the list of all installed keyboard layouts?</p>