summaryrefslogtreecommitdiff
path: root/keyboards/gizmo_engineering
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-01-20 05:44:05 +0000
committerGitHub <noreply@github.com>2023-01-20 05:44:05 +0000
commit53cc6170ae2687b0c894f05738181a2f16ad0d6c (patch)
tree8ad46caf24ee9dd35af36c2f292d0ba322650c80 /keyboards/gizmo_engineering
parent18d107b29bc2b84b13a19f3fc4ef08724247b1bb (diff)
Refactor some layouts which contain keyboard name (#19645)
* Refactor some layouts which contain keyboard name * use planck_mit
Diffstat (limited to 'keyboards/gizmo_engineering')
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/gk6.h4
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/info.json8
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/keymaps/1x2u/keymap.c6
-rwxr-xr-xkeyboards/gizmo_engineering/gk6/keymaps/default/keymap.c6
4 files changed, 14 insertions, 10 deletions
diff --git a/keyboards/gizmo_engineering/gk6/gk6.h b/keyboards/gizmo_engineering/gk6/gk6.h
index 70c0bee4ae..c774124b62 100755
--- a/keyboards/gizmo_engineering/gk6/gk6.h
+++ b/keyboards/gizmo_engineering/gk6/gk6.h
@@ -18,7 +18,7 @@
#include "quantum.h"
-#define LAYOUT_gk6_2x2u( \
+#define LAYOUT_2x2u( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
@@ -33,7 +33,7 @@
{ k40, k41, k42, k43, k44, KC_NO, KC_NO, k47, k48, k49, k4a, k4b }, \
}
-#define LAYOUT_gk6_1x2u( \
+#define LAYOUT_1x2u( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
diff --git a/keyboards/gizmo_engineering/gk6/info.json b/keyboards/gizmo_engineering/gk6/info.json
index 8dfdfbf93b..4573c3f561 100755
--- a/keyboards/gizmo_engineering/gk6/info.json
+++ b/keyboards/gizmo_engineering/gk6/info.json
@@ -8,8 +8,12 @@
"pid": "0x0001",
"device_version": "30.3.1"
},
+ "layout_aliases": {
+ "LAYOUT_gk6_2x2u": "LAYOUT_2x2u",
+ "LAYOUT_gk6_1x2u": "LAYOUT_1x2u"
+ },
"layouts": {
- "LAYOUT_gk6_2x2u": {
+ "LAYOUT_2x2u": {
"layout": [
{"x": 0, "y": 0},
{"x": 1, "y": 0},
@@ -143,7 +147,7 @@
{"x": 11, "y": 4}
]
},
- "LAYOUT_gk6_1x2u": {
+ "LAYOUT_1x2u": {
"layout": [
{"x": 0, "y": 0},
{"x": 1, "y": 0},
diff --git a/keyboards/gizmo_engineering/gk6/keymaps/1x2u/keymap.c b/keyboards/gizmo_engineering/gk6/keymaps/1x2u/keymap.c
index d1eba4e568..b303032171 100755
--- a/keyboards/gizmo_engineering/gk6/keymaps/1x2u/keymap.c
+++ b/keyboards/gizmo_engineering/gk6/keymaps/1x2u/keymap.c
@@ -40,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | Esc | GUI | Alt |Lower | Back| Space | Alt |Raise | Left | Down |Right |
* `-----------------------------------------------------------------------------------'
*/
-[_QWERTY] = LAYOUT_gk6_1x2u(
+[_QWERTY] = LAYOUT_1x2u(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SLSH,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |Debug | | | | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
-[_RAISE] = LAYOUT_gk6_1x2u(
+[_RAISE] = LAYOUT_1x2u(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
_______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
@@ -82,7 +82,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | | | | | | | | | | PgDn | |
* `-----------------------------------------------------------------------------------'
*/
-[_LOWER] = LAYOUT_gk6_1x2u(
+[_LOWER] = LAYOUT_1x2u(
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
KC_CAPS, KC_PSCR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, KC_HOME, KC_END, KC_INS, KC_MPLY, _______, _______, _______, _______, _______, _______, _______,
diff --git a/keyboards/gizmo_engineering/gk6/keymaps/default/keymap.c b/keyboards/gizmo_engineering/gk6/keymaps/default/keymap.c
index 84624ff032..b0e1615479 100755
--- a/keyboards/gizmo_engineering/gk6/keymaps/default/keymap.c
+++ b/keyboards/gizmo_engineering/gk6/keymaps/default/keymap.c
@@ -40,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | Esc | GUI | Alt |Lower | Backspace | Space |Raise | Left | Down |Right |
* `-----------------------------------------------------------------------------------'
*/
-[_QWERTY] = LAYOUT_gk6_2x2u(
+[_QWERTY] = LAYOUT_2x2u(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_SLSH,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |Debug | | | | | | | | |R Alt |
* `-----------------------------------------------------------------------------------'
*/
-[_RAISE] = LAYOUT_gk6_2x2u(
+[_RAISE] = LAYOUT_2x2u(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
_______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
@@ -82,7 +82,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | | | | | | | | | PgDn | |
* `-----------------------------------------------------------------------------------'
*/
-[_LOWER] = LAYOUT_gk6_2x2u(
+[_LOWER] = LAYOUT_2x2u(
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
KC_CAPS, KC_PSCR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, KC_HOME, KC_END, KC_INS, KC_MPLY, _______, _______, _______, _______, _______, _______, _______,