3 import system_config_keyboard.keyboard_models, sys
13 def tab_extend(s, n = 1):
30 models = system_config_keyboard.keyboard_models.KeyboardModels().get_models()
32 print "# Generated from system-config-keyboard's model list"
34 print "# consolelayout\t\txlayout\txmodel\t\txvariant\txoptions"
45 options = "terminate:ctrl_alt_bksp," + options
47 options = "terminate:ctrl_alt_bksp"
49 print "%s%s%s%s%s" % (tab_extend(key, 3), tab_extend(value[1]), tab_extend(value[2], 2), tab_extend(value[3], 2), options)