Refactor some layouts which contain keyboard name (#19642)

This commit is contained in:
Joel Challis
2023-01-20 01:59:46 +00:00
committed by GitHub
parent e5b36e2c3f
commit 891780b17f
33 changed files with 106 additions and 84 deletions

View File

@@ -8,8 +8,11 @@
"pid": "0x4F0D",
"device_version": "0.0.1"
},
"layout_aliases": {
"LAYOUT_reviung5": "LAYOUT"
},
"layouts": {
"LAYOUT_reviung5": {
"LAYOUT": {
"layout": [
{"label": "k00", "x": 0, "y": 0},
{"label": "k01", "x": 1, "y": 0.25},

View File

@@ -25,10 +25,10 @@ enum layer_names {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT_reviung5(
[_BASE] = LAYOUT(
LO_VD, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU
),
[_LOWER] = LAYOUT_reviung5(
[_LOWER] = LAYOUT(
_______, RGB_HUI, RGB_MOD, RGB_TOG, KC_MUTE
)
};

View File

@@ -23,10 +23,10 @@ enum layer_names {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT_reviung5(
[_BASE] = LAYOUT(
TG(_LOWER), KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE
),
[_LOWER] = LAYOUT_reviung5(
[_LOWER] = LAYOUT(
_______, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), RGB_TOG
)
};

View File

@@ -23,10 +23,10 @@ enum layer_names {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT_reviung5(
[_BASE] = LAYOUT(
KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, TG(_LOWER)
),
[_LOWER] = LAYOUT_reviung5(
[_LOWER] = LAYOUT(
RGB_TOG, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), _______
)
};

View File

@@ -26,7 +26,7 @@
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT_reviung5( \
#define LAYOUT( \
K00, K01, K02, K03, K04 \
) { \
{ K00, K01, K02, K03, K04 } \