Move single LAYOUT_all
s to data driven (#20430)
This commit is contained in:
@@ -24,59 +24,67 @@
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
{"x":0 , "y":0, "label":"Esc"},
|
||||
{"x":1 , "y":0, "label":"Q"},
|
||||
{"x":2 , "y":0, "label":"W"},
|
||||
{"x":3 , "y":0, "label":"E"},
|
||||
{"x":4 , "y":0, "label":"R"},
|
||||
{"x":5 , "y":0, "label":"T"},
|
||||
{"x":6 , "y":0, "label":"Y"},
|
||||
{"x":7 , "y":0, "label":"U"},
|
||||
{"x":8 , "y":0, "label":"I"},
|
||||
{"x":9 , "y":0, "label":"O"},
|
||||
{"x":10 , "y":0, "label":"P"},
|
||||
{"x":11 , "y":0, "label":"L Bracket"},
|
||||
{"x":12 , "y":0, "label":"Backspace", "w":1.75},
|
||||
{"x":14.25, "y":0, "label":"Delete"},
|
||||
{"x":0 , "y":1, "label":"Tab", "w":1.25},
|
||||
{"x":1.25, "y":1, "label":"A"},
|
||||
{"x":2.25, "y":1, "label":"S"},
|
||||
{"x":3.25, "y":1, "label":"D"},
|
||||
{"x":4.25, "y":1, "label":"F"},
|
||||
{"x":5.25, "y":1, "label":"G"},
|
||||
{"x":6.25, "y":1, "label":"H"},
|
||||
{"x":7.25, "y":1, "label":"J"},
|
||||
{"x":8.25, "y":1, "label":"K"},
|
||||
{"x":9.25, "y":1, "label":"L"},
|
||||
{"x":10.25, "y":1, "label":"Semicolon"},
|
||||
{"x":11.25, "y":1, "label":"Quote"},
|
||||
{"x":12.25, "y":1, "label":"Enter", "w":1.5},
|
||||
{"x":14.25, "y":1, "label":"Pg Up"},
|
||||
{"x":0 , "y":2, "label":"Left Shift", "w":1.75},
|
||||
{"x":1.75, "y":2, "label":"Z"},
|
||||
{"x":2.75, "y":2, "label":"X"},
|
||||
{"x":3.75, "y":2, "label":"C"},
|
||||
{"x":4.75, "y":2, "label":"V"},
|
||||
{"x":5.75, "y":2, "label":"B"},
|
||||
{"x":6.75, "y":2, "label":"N"},
|
||||
{"x":7.75, "y":2, "label":"M"},
|
||||
{"x":8.75, "y":2, "label":"Comma"},
|
||||
{"x":9.75, "y":2, "label":"Period"},
|
||||
{"x":10.75, "y":2, "label":"Slash"},
|
||||
{"x":11.75, "y":2, "label":"Right Shift", "w":1.25},
|
||||
{"x":13.125,"y":2.125,"label":"Up"},
|
||||
{"x":14.25, "y":2, "label":"Pg Dn"},
|
||||
{"x":0 , "y":3, "label":"Left Ctrl", "w":1.25},
|
||||
{"x":1.25 , "y":3, "label":"Left Alt", "w":1.25},
|
||||
{"x":2.5 , "y":3, "label":"MO(2)"},
|
||||
{"x":3.5 , "y":3, "label":"Space", "w":2.75},
|
||||
{"x":6.25 , "y":3, "label":"Space", "w":2.25},
|
||||
{"x":8.5 , "y":3, "label":"MO(3)"},
|
||||
{"x":9.5 , "y":3, "label":"R Win / Alt Gr", "w":1.25},
|
||||
{"x":10.75, "y":3, "label":"MO(1)", "w":1.25},
|
||||
{"x":12.125,"y":3.125,"label":"Left"},
|
||||
{"x":13.125,"y":3.125,"label":"Down"},
|
||||
{"x":14.125,"y":3.125,"label":"Right"}
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [1, 0], "x": 1, "y": 0},
|
||||
{"matrix": [0, 1], "x": 2, "y": 0},
|
||||
{"matrix": [1, 1], "x": 3, "y": 0},
|
||||
{"matrix": [0, 2], "x": 4, "y": 0},
|
||||
{"matrix": [1, 2], "x": 5, "y": 0},
|
||||
{"matrix": [0, 3], "x": 6, "y": 0},
|
||||
{"matrix": [1, 3], "x": 7, "y": 0},
|
||||
{"matrix": [0, 4], "x": 8, "y": 0},
|
||||
{"matrix": [1, 4], "x": 9, "y": 0},
|
||||
{"matrix": [0, 5], "x": 10, "y": 0},
|
||||
{"matrix": [1, 5], "x": 11, "y": 0},
|
||||
{"matrix": [0, 6], "x": 12, "y": 0, "w": 1.75},
|
||||
|
||||
{"matrix": [0, 7], "x": 14.25, "y": 0},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 1, "w": 1.25},
|
||||
{"matrix": [3, 0], "x": 1.25, "y": 1},
|
||||
{"matrix": [2, 1], "x": 2.25, "y": 1},
|
||||
{"matrix": [3, 1], "x": 3.25, "y": 1},
|
||||
{"matrix": [2, 2], "x": 4.25, "y": 1},
|
||||
{"matrix": [3, 2], "x": 5.25, "y": 1},
|
||||
{"matrix": [2, 3], "x": 6.25, "y": 1},
|
||||
{"matrix": [3, 3], "x": 7.25, "y": 1},
|
||||
{"matrix": [2, 4], "x": 8.25, "y": 1},
|
||||
{"matrix": [3, 4], "x": 9.25, "y": 1},
|
||||
{"matrix": [2, 5], "x": 10.25, "y": 1},
|
||||
{"matrix": [3, 5], "x": 11.25, "y": 1},
|
||||
{"matrix": [2, 6], "x": 12.25, "y": 1, "w": 1.5},
|
||||
|
||||
{"matrix": [2, 7], "x": 14.25, "y": 1},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 2, "w": 1.75},
|
||||
{"matrix": [5, 0], "x": 1.75, "y": 2},
|
||||
{"matrix": [4, 1], "x": 2.75, "y": 2},
|
||||
{"matrix": [5, 1], "x": 3.75, "y": 2},
|
||||
{"matrix": [4, 2], "x": 4.75, "y": 2},
|
||||
{"matrix": [5, 2], "x": 5.75, "y": 2},
|
||||
{"matrix": [4, 3], "x": 6.75, "y": 2},
|
||||
{"matrix": [5, 3], "x": 7.75, "y": 2},
|
||||
{"matrix": [4, 4], "x": 8.75, "y": 2},
|
||||
{"matrix": [5, 4], "x": 9.75, "y": 2},
|
||||
{"matrix": [4, 5], "x": 10.75, "y": 2},
|
||||
{"matrix": [5, 5], "x": 11.75, "y": 2, "w": 1.25},
|
||||
|
||||
{"matrix": [4, 6], "x": 13.125, "y": 2.125},
|
||||
|
||||
{"matrix": [4, 7], "x": 14.25, "y": 2},
|
||||
|
||||
{"matrix": [6, 0], "x": 0, "y": 3, "w": 1.25},
|
||||
{"matrix": [7, 0], "x": 1.25, "y": 3, "w": 1.25},
|
||||
{"matrix": [6, 1], "x": 2.5, "y": 3},
|
||||
{"matrix": [7, 1], "x": 3.5, "y": 3, "w": 2.75},
|
||||
{"matrix": [7, 3], "x": 6.25, "y": 3, "w": 2.25},
|
||||
{"matrix": [6, 4], "x": 8.5, "y": 3},
|
||||
{"matrix": [7, 4], "x": 9.5, "y": 3, "w": 1.25},
|
||||
{"matrix": [6, 5], "x": 10.75, "y": 3, "w": 1.25},
|
||||
|
||||
{"matrix": [7, 5], "x": 12.125, "y": 3.125},
|
||||
{"matrix": [7, 6], "x": 13.125, "y": 3.125},
|
||||
{"matrix": [6, 7], "x": 14.125, "y": 3.125}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -14,7 +14,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "kastenwagen48.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef LAYER_LED_DISABLE
|
||||
|
||||
|
@@ -1,51 +0,0 @@
|
||||
/* Copyright 2022 W. Alex Ronke, a.k.a. NoPunIn10Did (w.alex.ronke@gmail.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬──────┐ ┌───┐
|
||||
* │100│101│110│111│120│121│130│131│140│141│150│151│160 │ │170│
|
||||
* ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬─────┤ ├───┤
|
||||
* │202 │203│212│213│222│223│232│233│242│243│252│253│262 │ │272│
|
||||
* ├────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬──┘ ├───┤
|
||||
* │304 │305│314│315│324│325│334│335│344│345│354│355 │┌───┐│374│
|
||||
* ├────┬─┴──┬┴──┬┴───┴───┴─┬─┴───┴──┬┴──┬┴───┼───┴┬───┘│364│└───┘
|
||||
* │406 │407 │416│417 │437 │446│447 │456 │┌───┼───┼───┐
|
||||
* └────┴────┴───┴──────────┴────────┴───┴────┴────┘│457│467│476│
|
||||
* ┌───────────────────────────┐ └───┴───┴───┘
|
||||
* │417 │ 7u Space
|
||||
* └───────────────────────────┘
|
||||
*/
|
||||
|
||||
#define LAYOUT_all( \
|
||||
K100 , K101 , K110 , K111 , K120 , K121 , K130 , K131 , K140 , K141 , K150 , K151 , K160 , K170 , \
|
||||
K202 , K203 , K212 , K213 , K222 , K223 , K232 , K233 , K242 , K243 , K252 , K253 , K262 , K272 , \
|
||||
K304 , K305 , K314 , K315 , K324 , K325 , K334 , K335 , K344 , K345 , K354 , K355 , K364 , K374 , \
|
||||
K406 , K407 , K416 , K417 , K437 , K446 , K447 , K456 , K457 , K467 , K476 \
|
||||
) \
|
||||
{ \
|
||||
{ K100 , K110 , K120 , K130 , K140 , K150 , K160 , K170 }, \
|
||||
{ K101 , K111 , K121 , K131 , K141 , K151 , KC_NO, KC_NO }, \
|
||||
{ K202 , K212 , K222 , K232 , K242 , K252 , K262 , K272 }, \
|
||||
{ K203 , K213 , K223 , K233 , K243 , K253 , KC_NO, KC_NO }, \
|
||||
{ K304 , K314 , K324 , K334 , K344 , K354 , K364 , K374 }, \
|
||||
{ K305 , K315 , K325 , K335 , K345 , K355 , KC_NO, KC_NO }, \
|
||||
{ K406 , K416 , KC_NO, KC_NO, K446 , K456 , KC_NO, K476 }, \
|
||||
{ K407 , K417 , KC_NO, K437 , K447 , K457 , K467 , KC_NO } \
|
||||
}
|
Reference in New Issue
Block a user