diff options
author | James Young <18669334+noroadsleft@users.noreply.github.com> | 2023-05-09 17:33:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 01:33:25 +0100 |
commit | 8819793f1be6a4ad4acbd679c8b74b1cd043e7ad (patch) | |
tree | d876036f2ddb80d947de0d264c52ab3dc62cd756 /keyboards/spaceholdings/nebula12b | |
parent | 075c08733e1324d85e1a227c67b8a8b43e072d73 (diff) |
Space Holdings Nebula12B (#20821)
* info.json: apply friendly formatting
* rename LAYOUT_all to LAYOUT_ortho_4x3
Diffstat (limited to 'keyboards/spaceholdings/nebula12b')
-rwxr-xr-x | keyboards/spaceholdings/nebula12b/info.json | 29 | ||||
-rwxr-xr-x | keyboards/spaceholdings/nebula12b/keymaps/default/keymap.c | 4 | ||||
-rwxr-xr-x | keyboards/spaceholdings/nebula12b/keymaps/via/keymap.c | 8 |
3 files changed, 22 insertions, 19 deletions
diff --git a/keyboards/spaceholdings/nebula12b/info.json b/keyboards/spaceholdings/nebula12b/info.json index 765190eda3..9cbfcd1f86 100755 --- a/keyboards/spaceholdings/nebula12b/info.json +++ b/keyboards/spaceholdings/nebula12b/info.json @@ -21,24 +21,27 @@ "diode_direction": "COL2ROW", "processor": "atmega32u4", "bootloader": "atmel-dfu", + "layout_aliases": { + "LAYOUT_all": "LAYOUT_ortho_4x3" + }, "layouts": { - "LAYOUT_all": { + "LAYOUT_ortho_4x3": { "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - {"matrix": [0, 1], "x": 1, "y": 0}, - {"matrix": [0, 2], "x": 2, "y": 0}, + {"label": "7", "matrix": [0, 0], "x": 0, "y": 0}, + {"label": "8", "matrix": [0, 1], "x": 1, "y": 0}, + {"label": "9", "matrix": [0, 2], "x": 2, "y": 0}, - {"matrix": [1, 0], "x": 0, "y": 1}, - {"matrix": [1, 1], "x": 1, "y": 1}, - {"matrix": [1, 2], "x": 2, "y": 1}, + {"label": "4", "matrix": [1, 0], "x": 0, "y": 1}, + {"label": "5", "matrix": [1, 1], "x": 1, "y": 1}, + {"label": "6", "matrix": [1, 2], "x": 2, "y": 1}, - {"matrix": [2, 0], "x": 0, "y": 2}, - {"matrix": [2, 1], "x": 1, "y": 2}, - {"matrix": [2, 2], "x": 2, "y": 2}, + {"label": "1", "matrix": [2, 0], "x": 0, "y": 2}, + {"label": "2", "matrix": [2, 1], "x": 1, "y": 2}, + {"label": "3", "matrix": [2, 2], "x": 2, "y": 2}, - {"matrix": [3, 0], "x": 0, "y": 3}, - {"matrix": [3, 1], "x": 1, "y": 3}, - {"matrix": [3, 2], "x": 2, "y": 3} + {"label": "Fn", "matrix": [3, 0], "x": 0, "y": 3}, + {"label": "0", "matrix": [3, 1], "x": 1, "y": 3}, + {"label": ".", "matrix": [3, 2], "x": 2, "y": 3} ] } } diff --git a/keyboards/spaceholdings/nebula12b/keymaps/default/keymap.c b/keyboards/spaceholdings/nebula12b/keymaps/default/keymap.c index 8006e4123f..f6c680d095 100755 --- a/keyboards/spaceholdings/nebula12b/keymaps/default/keymap.c +++ b/keyboards/spaceholdings/nebula12b/keymaps/default/keymap.c @@ -16,13 +16,13 @@ #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[0] = LAYOUT_all( /* Base */ +[0] = LAYOUT_ortho_4x3( /* Base */ KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_P1, KC_P2, KC_P3, MO(1), KC_P0, KC_PDOT), -[1] = LAYOUT_all( /* FN */ +[1] = LAYOUT_ortho_4x3( /* FN */ RGB_TOG, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, diff --git a/keyboards/spaceholdings/nebula12b/keymaps/via/keymap.c b/keyboards/spaceholdings/nebula12b/keymaps/via/keymap.c index 943c27857b..b93b992e3b 100755 --- a/keyboards/spaceholdings/nebula12b/keymaps/via/keymap.c +++ b/keyboards/spaceholdings/nebula12b/keymaps/via/keymap.c @@ -16,25 +16,25 @@ #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[0] = LAYOUT_all( /* Base */ +[0] = LAYOUT_ortho_4x3( /* Base */ KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_P1, KC_P2, KC_P3, MO(1), KC_P0, KC_PDOT), -[1] = LAYOUT_all( /* FN */ +[1] = LAYOUT_ortho_4x3( /* FN */ RGB_TOG, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PENT), -[2] = LAYOUT_all( /* Empty for dynamic keymaps */ +[2] = LAYOUT_ortho_4x3( /* Empty for dynamic keymaps */ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), -[3] = LAYOUT_all( /* Empty for dynamic keymaps */ +[3] = LAYOUT_ortho_4x3( /* Empty for dynamic keymaps */ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, |