Skip to content

Commit

Permalink
Remove layout aliases from keyboard_aliases.hjson (qmk#21658)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and akeep committed Oct 2, 2023
1 parent 2e168ff commit aece01f
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 65 deletions.
66 changes: 5 additions & 61 deletions data/mappings/keyboard_aliases.hjson
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
// Format for each entry:
// "<alias>": {
// "target": "<keyboard_folder>",
// "layouts": {
// "<layout_alias>": "<layout_target>"
// }
// "target": "<keyboard_folder>"
// }
//
// Both target and layouts are optional.
"2_milk": {
"target": "spaceman/2_milk"
},
Expand Down Expand Up @@ -140,21 +136,6 @@
"daisy": {
"target": "ktec/daisy"
},
"doro67/multi": {
"layouts": {
"LAYOUT_ansi": "LAYOUT_65_ansi_blocker"
}
},
"doro67/regular": {
"layouts": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
}
},
"doro67/rgb": {
"layouts": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
}
},
"drakon": {
"target": "jagdpietr/drakon"
},
Expand Down Expand Up @@ -285,10 +266,7 @@
"target": "keyhive/honeycomb"
},
"idb_60": {
"target": "idb/idb_60",
"layouts": {
"LAYOUT": "LAYOUT_all"
}
"target": "idb/idb_60"
},
"idobo": {
"target": "idobao/id75"
Expand All @@ -309,19 +287,13 @@
"target": "jones/v03_1"
},
"kamigakushi": {
"target": "jaykeeb/kamigakushi",
"layouts": {
"LAYOUT": "LAYOUT_65_ansi_blocker_tsangan"
}
"target": "jaykeeb/kamigakushi"
},
"katana60": {
"target": "rominronin/katana60/rev1"
},
"kbdfans/kbd67mkiirgb": {
"target": "kbdfans/kbd67/mkiirgb",
"layouts": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
}
"target": "kbdfans/kbd67/mkiirgb"
},
"kbdfans/kbd67/mkiirgb": {
"target": "kbdfans/kbd67/mkiirgb/v1"
Expand Down Expand Up @@ -467,11 +439,6 @@
"mschwingen/modelm": {
"target": "ibm/model_m/mschwingen"
},
"noxary/268_2": {
"layouts": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
}
},
"oddball": {
"target": "oddball/v1"
},
Expand All @@ -496,11 +463,6 @@
"peiorisboards/ixora": {
"target": "coarse/ixora"
},
"percent/canoe": {
"layouts": {
"LAYOUT_iso": "LAYOUT_65_iso_blocker"
}
},
"plaid": {
"target": "dm9records/plaid"
},
Expand All @@ -513,21 +475,6 @@
"polilla": {
"target": "polilla/rev1"
},
"preonic/rev1": {
"layouts": {
"LAYOUT_preonic_grid": "LAYOUT_ortho_5x12"
}
},
"preonic/rev2": {
"layouts": {
"LAYOUT_preonic_grid": "LAYOUT_ortho_5x12"
}
},
"preonic/rev3": {
"layouts": {
"LAYOUT_preonic_grid": "LAYOUT_ortho_5x12"
}
},
"primekb/prime_l": {
"target": "primekb/prime_l/v1"
},
Expand Down Expand Up @@ -619,10 +566,7 @@
"target": "underscore33/rev1"
},
"vinta": {
"target": "coarse/vinta",
"layouts": {
"LAYOUT_67_ansi": "LAYOUT_65_ansi_blocker"
}
"target": "coarse/vinta"
},
"wasdat": {
"target": "maartenwut/wasdat"
Expand Down
3 changes: 3 additions & 0 deletions keyboards/coarse/vinta/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bootloader": "stm32-dfu",
"debounce": 0,
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT_67_ansi": "LAYOUT_65_ansi_blocker"
},
"layouts": {
"LAYOUT_69_ansi": {
"layout": [
Expand Down
3 changes: 3 additions & 0 deletions keyboards/doro67/multi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT_ansi": "LAYOUT_65_ansi_blocker"
},
"layouts": {
"LAYOUT_65_ansi_blocker": {
"layout": [
Expand Down
3 changes: 3 additions & 0 deletions keyboards/doro67/regular/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
},
"layouts": {
"LAYOUT_65_ansi_blocker": {
"layout": [
Expand Down
3 changes: 3 additions & 0 deletions keyboards/doro67/rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
},
"layouts": {
"LAYOUT_65_ansi_blocker": {
"layout": [
Expand Down
3 changes: 3 additions & 0 deletions keyboards/jaykeeb/kamigakushi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
"pid": "0x0765",
"vid": "0x414C"
},
"layout_aliases": {
"LAYOUT": "LAYOUT_65_ansi_blocker_tsangan"
},
"layouts": {
"LAYOUT_65_ansi_blocker_tsangan": {
"layout": [
Expand Down
5 changes: 4 additions & 1 deletion keyboards/kbdfans/kbd67/mkiirgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"usb": {
"vid": "0x4B42"
},
"community_layouts": ["65_ansi_blocker"]
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
}
}
3 changes: 3 additions & 0 deletions keyboards/noxary/268_2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi_blocker"],
"layout_aliases": {
"LAYOUT": "LAYOUT_65_ansi_blocker"
},
"layouts": {
"LAYOUT_65_ansi_blocker": {
"layout": [
Expand Down
3 changes: 0 additions & 3 deletions lib/python/qmk/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ def parse_configurator_json(configurator_file):
if 'target' in aliases[orig_keyboard]:
user_keymap['keyboard'] = aliases[orig_keyboard]['target']

if 'layouts' in aliases[orig_keyboard] and user_keymap['layout'] in aliases[orig_keyboard]['layouts']:
user_keymap['layout'] = aliases[orig_keyboard]['layouts'][user_keymap['layout']]

return user_keymap


Expand Down

0 comments on commit aece01f

Please sign in to comment.