4 import system_config_keyboard.keyboard_models
7 return s.strip() or '-'
9 def tab_extend(s, n=1):
21 models = system_config_keyboard.keyboard_models.KeyboardModels().get_models()
23 print "# Generated from system-config-keyboard's model list"
24 print "# consolelayout\t\txlayout\txmodel\t\txvariant\txoptions"
26 for key, value in reversed(models.items()):
27 options = "terminate:ctrl_alt_bksp"
29 options += ',' + value[4]
31 print ''.join((tab_extend(key, 3), tab_extend(value[1]),
32 tab_extend(value[2], 2), tab_extend(value[3], 2),