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