Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiudi XD004: rename LAYOUT_all to LAYOUT_ortho_1x4 #20919

Merged
merged 2 commits into from
May 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions keyboards/xiudi/xd004/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@
["D3", "D0", "C4", "B4"]
]
},
"layout_aliases": {
"LAYOUT_all": "LAYOUT_ortho_1x4"
},
"layouts": {
"LAYOUT_all": {
"LAYOUT_ortho_1x4": {
"layout": [
{"x": 0, "y": 0, "matrix": [0, 0]},
{"x": 1, "y": 0, "matrix": [0, 1]},
{"x": 2, "y": 0, "matrix": [0, 2]},
{"x": 3, "y": 0, "matrix": [0, 3]}
{"label": "L", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "O", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "V", "matrix": [0, 2], "x": 2, "y": 0},
{"label": "E", "matrix": [0, 3], "x": 3, "y": 0}
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/xiudi/xd004/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// 0: Base Layer
LAYOUT_all(KC_L, KC_O, KC_V, KC_E),
LAYOUT_ortho_1x4(KC_L, KC_O, KC_V, KC_E),

};
2 changes: 1 addition & 1 deletion keyboards/xiudi/xd004/keymaps/narze/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// 0: Base Layer
LAYOUT_all(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)),
LAYOUT_ortho_1x4(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)),

};
6 changes: 3 additions & 3 deletions keyboards/xiudi/xd004/keymaps/system_and_media/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ enum custom_keycodes { // Make sure have the awesome keycode ready
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// 0: Base Layer
[_BASE] = LAYOUT_all(LT(_SYSTEM, KC_F5), C(G(KC_LEFT)), C(G(KC_RIGHT)), LT(_VOLUME, KC_F7)),
[_BASE] = LAYOUT_ortho_1x4(LT(_SYSTEM, KC_F5), C(G(KC_LEFT)), C(G(KC_RIGHT)), LT(_VOLUME, KC_F7)),

// 1: System actions
[_SYSTEM] = LAYOUT_all(_______, SUPER_ALT_F4, G(KC_D), G(KC_L)),
[_SYSTEM] = LAYOUT_ortho_1x4(_______, SUPER_ALT_F4, G(KC_D), G(KC_L)),

// 2: Volume actions
[_VOLUME] = LAYOUT_all(KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, _______),
[_VOLUME] = LAYOUT_ortho_1x4(KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, _______),

};

Expand Down