1
0
Fork 0

Move miscellaneous layouts to data driven (#20516)

This commit is contained in:
Ryan 2023-04-25 02:38:35 +10:00 committed by GitHub
parent 72d2be24f9
commit f111bea3cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
288 changed files with 19592 additions and 21083 deletions

View file

@ -23,16 +23,44 @@
"debounce": 0,
"layouts": {
"LAYOUT_full": {
"layout": [{"label":"1", "x":0, "y":0}, {"label":"2", "x":1, "y":0}, {"label":"3", "x":2, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}]
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 0, "y": 1},
{"matrix": [0, 4], "x": 1, "y": 1},
{"matrix": [0, 5], "x": 2, "y": 1}
]
},
"LAYOUT_blocker_right": {
"layout": [{"label":"1", "x":0, "y":0}, {"label":"2", "x":1, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}]
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 3], "x": 0, "y": 1},
{"matrix": [0, 4], "x": 1, "y": 1},
{"matrix": [0, 5], "x": 2, "y": 1}
]
},
"LAYOUT_blocker_left": {
"layout": [{"label":"2", "x":1, "y":0}, {"label":"3", "x":2, "y":0}, {"label":"Caps Lock", "x":0, "y":1}, {"label":"Num Lock", "x":1, "y":1}, {"label":"Scroll Lock", "x":2, "y":1}]
"layout": [
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 0, "y": 1},
{"matrix": [0, 4], "x": 1, "y": 1},
{"matrix": [0, 5], "x": 2, "y": 1}
]
},
"LAYOUT_arrows": {
"layout": [{"label":"\u2191", "x":1, "y":0}, {"label":"\u2190", "x":0, "y":1}, {"label":"\u2193", "x":1, "y":1}, {"label":"\u2192", "x":2, "y":1}]
"layout": [
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 3], "x": 0, "y": 1},
{"matrix": [0, 4], "x": 1, "y": 1},
{"matrix": [0, 5], "x": 2, "y": 1}
]
}
}
}
}

View file

@ -1,40 +0,0 @@
#pragma once
#define XXX KC_NO
#include "quantum.h"
// This a shortcut to help you visually see your layout.
#define LAYOUT_full( \
K00, K01, K02, \
K03, K04, K05 \
) \
{ \
{ K00, K01, K02, K03, K04, K05 } \
}
#define LAYOUT_blocker_right( \
K00, K01, \
K03, K04, K05 \
) \
{ \
{ K00, K01, XXX, K03, K04, K05 } \
}
#define LAYOUT_blocker_left( \
K01, K02, \
K03, K04, K05 \
) \
{ \
{ XXX, K01, K02, K03, K04, K05 } \
}
#define LAYOUT_arrows( \
K01, \
K03, K04, K05 \
) \
{ \
{ XXX, K01, XXX, K03, K04, K05 } \
}