summaryrefslogtreecommitdiff
path: root/keyboards/ms_sculpt
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-25 02:38:35 +1000
committerGitHub <noreply@github.com>2023-04-25 02:38:35 +1000
commitf111bea3cda240b7c54bff2e12b5043b7b0797f7 (patch)
tree9fa3b3356f50e0b989231bf69da4ce00c18e85e0 /keyboards/ms_sculpt
parent72d2be24f9bb1ab40a7a64447f2625c31b22a201 (diff)
Move miscellaneous layouts to data driven (#20516)
Diffstat (limited to 'keyboards/ms_sculpt')
-rw-r--r--keyboards/ms_sculpt/info.json178
-rw-r--r--keyboards/ms_sculpt/ms_sculpt.h25
2 files changed, 89 insertions, 114 deletions
diff --git a/keyboards/ms_sculpt/info.json b/keyboards/ms_sculpt/info.json
index 1e540bd58c..39782eea71 100644
--- a/keyboards/ms_sculpt/info.json
+++ b/keyboards/ms_sculpt/info.json
@@ -32,100 +32,100 @@
"layouts": {
"LAYOUT_iso": {
"layout": [
- {"label":"Esc", "x":0, "y":0, "h":0.8},
- {"label":"F1", "x":1, "y":0, "h":0.8},
- {"label":"F2", "x":2, "y":0, "h":0.8},
- {"label":"F3", "x":3, "y":0, "h":0.8},
- {"label":"F4", "x":4, "y":0, "h":0.8},
- {"label":"F5", "x":5, "y":0, "h":0.8},
- {"label":"F6", "x":6, "y":0, "h":0.8},
- {"label":"F7", "x":8, "y":0, "w":0.975, "h":0.8},
- {"label":"F8", "x":8.975, "y":0, "w":0.975, "h":0.8},
- {"label":"F9", "x":9.95, "y":0, "w":0.975, "h":0.8},
- {"label":"F10", "x":10.925, "y":0, "w":0.975, "h":0.8},
- {"label":"F11", "x":11.9, "y":0, "w":0.975, "h":0.8},
- {"label":"F12", "x":12.875, "y":0, "w":0.975, "h":0.8},
- {"label":"Print Screen", "x":13.85, "y":0, "w":0.975, "h":0.8},
- {"label":"Scroll Lock", "x":14.825, "y":0, "w":0.975, "h":0.8},
- {"label":"Pause", "x":15.8, "y":0, "w":0.975, "h":0.8},
- {"label":"Calculator", "x":16.775, "y":0, "w":0.975, "h":0.8},
+ {"matrix": [4, 13], "x": 0, "y": 0, "h": 0.8},
+ {"matrix": [7, 12], "x": 1, "y": 0, "h": 0.8},
+ {"matrix": [7, 11], "x": 2, "y": 0, "h": 0.8},
+ {"matrix": [1, 11], "x": 3, "y": 0, "h": 0.8},
+ {"matrix": [4, 11], "x": 4, "y": 0, "h": 0.8},
+ {"matrix": [1, 10], "x": 5, "y": 0, "h": 0.8},
+ {"matrix": [1, 15], "x": 6, "y": 0, "h": 0.8},
+ {"matrix": [7, 9], "x": 8, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [7, 7], "x": 8.975, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [7, 5], "x": 9.95, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [7, 8], "x": 10.925, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [7, 3], "x": 11.9, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [1, 3], "x": 12.875, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [7, 1], "x": 13.85, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [3, 1], "x": 14.825, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [0, 1], "x": 15.8, "y": 0, "w": 0.975, "h": 0.8},
+ {"matrix": [2, 3], "x": 16.775, "y": 0, "w": 0.975, "h": 0.8},
- {"label":"`~", "x":0, "y":0.8},
- {"label":"1!", "x":1, "y":0.8},
- {"label":"2@", "x":2, "y":0.8},
- {"label":"3#", "x":3, "y":0.8},
- {"label":"4$", "x":4, "y":0.8},
- {"label":"5%", "x":5, "y":0.8},
- {"label":"6^", "x":6, "y":0.8},
- {"label":"7&", "x":8, "y":0.8, "w":1.5},
- {"label":"8*", "x":9.5, "y":0.8},
- {"label":"9(", "x":10.5, "y":0.8},
- {"label":"0)", "x":11.5, "y":0.8},
- {"label":"-_", "x":12.5, "y":0.8},
- {"label":"=+", "x":13.5, "y":0.8},
- {"label":"Backspace", "x":14.5, "y":0.8, "w":2.25},
- {"label":"Delete", "x":16.75, "y":0.8, "h":2},
- {"label":"Home", "x":17.75, "y":0.8},
+ {"matrix": [7, 13], "x": 0, "y": 0.8},
+ {"matrix": [0, 13], "x": 1, "y": 0.8},
+ {"matrix": [0, 12], "x": 2, "y": 0.8},
+ {"matrix": [2, 13], "x": 3, "y": 0.8},
+ {"matrix": [1, 13], "x": 4, "y": 0.8},
+ {"matrix": [7, 10], "x": 5, "y": 0.8},
+ {"matrix": [7, 15], "x": 6, "y": 0.8},
+ {"matrix": [0, 9], "x": 8, "y": 0.8, "w": 1.5},
+ {"matrix": [0, 7], "x": 9.5, "y": 0.8},
+ {"matrix": [0, 5], "x": 10.5, "y": 0.8},
+ {"matrix": [0, 4], "x": 11.5, "y": 0.8},
+ {"matrix": [1, 5], "x": 12.5, "y": 0.8},
+ {"matrix": [7, 4], "x": 13.5, "y": 0.8},
+ {"matrix": [0, 8], "x": 14.5, "y": 0.8, "w": 2.25},
+ {"matrix": [0, 3], "x": 16.75, "y": 0.8, "h": 2},
+ {"matrix": [2, 1], "x": 17.75, "y": 0.8},
- {"label":"Tab", "x":0, "y":1.8, "w":1.25},
- {"label":"Q", "x":1.25, "y":1.8},
- {"label":"W", "x":2.25, "y":1.8},
- {"label":"E", "x":3.25, "y":1.8},
- {"label":"R", "x":4.25, "y":1.8},
- {"label":"T", "x":5.25, "y":1.8, "w":1.75},
- {"label":"Y", "x":8, "y":1.8, "w":1.25},
- {"label":"U", "x":9.25, "y":1.8},
- {"label":"I", "x":10.25, "y":1.8},
- {"label":"O", "x":11.25, "y":1.8},
- {"label":"P", "x":12.25, "y":1.8},
- {"label":"[{", "x":13.25, "y":1.8},
- {"label":"]}", "x":14.25, "y":1.8},
- {"label":"End", "x":17.75, "y":1.8},
+ {"matrix": [0, 10], "x": 0, "y": 1.8, "w": 1.25},
+ {"matrix": [0, 11], "x": 1.25, "y": 1.8},
+ {"matrix": [1, 12], "x": 2.25, "y": 1.8},
+ {"matrix": [2, 11], "x": 3.25, "y": 1.8},
+ {"matrix": [2, 10], "x": 4.25, "y": 1.8},
+ {"matrix": [2, 15], "x": 5.25, "y": 1.8, "w": 1.75},
+ {"matrix": [1, 9], "x": 8, "y": 1.8, "w": 1.25},
+ {"matrix": [2, 9], "x": 9.25, "y": 1.8},
+ {"matrix": [2, 7], "x": 10.25, "y": 1.8},
+ {"matrix": [2, 5], "x": 11.25, "y": 1.8},
+ {"matrix": [2, 4], "x": 12.25, "y": 1.8},
+ {"matrix": [1, 4], "x": 13.25, "y": 1.8},
+ {"matrix": [1, 7], "x": 14.25, "y": 1.8},
+ {"matrix": [5, 1], "x": 17.75, "y": 1.8},
- {"label":"Shift", "x":0, "y":2.8, "w":1.5},
- {"label":"A", "x":1.5, "y":2.8},
- {"label":"S", "x":2.5, "y":2.8},
- {"label":"D", "x":3.5, "y":2.8},
- {"label":"F", "x":4.5, "y":2.8},
- {"label":"G", "x":5.5, "y":2.8, "w":1.5},
- {"label":"H", "x":8, "y":2.8, "w":1.5},
- {"label":"J", "x":9.5, "y":2.8},
- {"label":"K", "x":10.5, "y":2.8},
- {"label":"L", "x":11.5, "y":2.8},
- {"label":";:", "x":12.5, "y":2.8},
- {"label":"'@", "x":13.5, "y":2.8},
- {"label":"#~", "x":14.5, "y":2.8},
- {"label":"Enter", "x":15.5, "y":1.8, "w":1.25, "h":2},
- {"label":"Insert", "x":16.75, "y":2.8},
- {"label":"Page Up", "x":17.75, "y":2.8},
+ {"matrix": [2, 12], "x": 0, "y": 2.8, "w": 1.5},
+ {"matrix": [3, 13], "x": 1.5, "y": 2.8},
+ {"matrix": [4, 12], "x": 2.5, "y": 2.8},
+ {"matrix": [3, 11], "x": 3.5, "y": 2.8},
+ {"matrix": [3, 10], "x": 4.5, "y": 2.8},
+ {"matrix": [4, 10], "x": 5.5, "y": 2.8, "w": 1.5},
+ {"matrix": [4, 9], "x": 8, "y": 2.8, "w": 1.5},
+ {"matrix": [3, 9], "x": 9.5, "y": 2.8},
+ {"matrix": [3, 7], "x": 10.5, "y": 2.8},
+ {"matrix": [3, 5], "x": 11.5, "y": 2.8},
+ {"matrix": [3, 4], "x": 12.5, "y": 2.8},
+ {"matrix": [4, 5], "x": 13.5, "y": 2.8},
+ {"matrix": [5, 4], "x": 14.5, "y": 2.8},
+ {"matrix": [3, 3], "x": 15.5, "y": 1.8, "w": 1.25, "h": 2},
+ {"matrix": [1, 8], "x": 16.75, "y": 2.8},
+ {"matrix": [1, 1], "x": 17.75, "y": 2.8},
- {"label":"Shift", "x":0, "y":3.8},
- {"label":"\\|", "x":1, "y":3.8},
- {"label":"Z", "x":2, "y":3.8},
- {"label":"X", "x":3, "y":3.8},
- {"label":"C", "x":4, "y":3.8},
- {"label":"V", "x":5, "y":3.8},
- {"label":"B", "x":6, "y":3.8},
- {"label":"N", "x":8, "y":3.8, "w":2},
- {"label":"M", "x":10, "y":3.8},
- {"label":",<", "x":11, "y":3.8},
- {"label":".>", "x":12, "y":3.8},
- {"label":"/?", "x":13, "y":3.8},
- {"label":"Shift", "x":14, "y":3.8, "w":2.75},
- {"label":"\u2191", "x":16.75, "y":3.8},
- {"label":"Page Down", "x":17.75, "y":3.8},
+ {"matrix": [5, 14], "x": 0, "y": 3.8},
+ {"matrix": [3, 12], "x": 1, "y": 3.8},
+ {"matrix": [5, 13], "x": 2, "y": 3.8},
+ {"matrix": [5, 12], "x": 3, "y": 3.8},
+ {"matrix": [5, 11], "x": 4, "y": 3.8},
+ {"matrix": [5, 10], "x": 5, "y": 3.8},
+ {"matrix": [6, 10], "x": 6, "y": 3.8},
+ {"matrix": [6, 9], "x": 8, "y": 3.8, "w": 2},
+ {"matrix": [5, 9], "x": 10, "y": 3.8},
+ {"matrix": [5, 7], "x": 11, "y": 3.8},
+ {"matrix": [5, 5], "x": 12, "y": 3.8},
+ {"matrix": [4, 4], "x": 13, "y": 3.8},
+ {"matrix": [5, 2], "x": 14, "y": 3.8, "w": 2.75},
+ {"matrix": [6, 3], "x": 16.75, "y": 3.8},
+ {"matrix": [5, 3], "x": 17.75, "y": 3.8},
- {"label":"Ctrl", "x":0, "y":4.8, "w":1.5},
- {"label":"GUI", "x":1.5, "y":4.8, "w":1.5},
- {"label":"Alt", "x":3, "y":4.8, "w":1.5},
- {"label":"Space", "x":4.5, "y":4.8, "w":3},
- {"label":"Space", "x":7.5, "y":4.8, "w":3},
- {"label":"AltGr", "x":10.5, "y":4.8, "w":1.5},
- {"label":"App", "x":12, "y":4.8, "w":1.5},
- {"label":"Ctrl", "x":13.5, "y":4.8, "w":2.25},
- {"label":"\u2190", "x":15.75, "y":4.8},
- {"label":"\u2192", "x":16.75, "y":4.8},
- {"label":"\u2193", "x":17.75, "y":4.8}
+ {"matrix": [6, 17], "x": 0, "y": 4.8, "w": 1.5},
+ {"matrix": [3, 15], "x": 1.5, "y": 4.8, "w": 1.5},
+ {"matrix": [4, 16], "x": 3, "y": 4.8, "w": 1.5},
+ {"matrix": [6, 11], "x": 4.5, "y": 4.8, "w": 3},
+ {"matrix": [6, 8], "x": 7.5, "y": 4.8, "w": 3},
+ {"matrix": [4, 6], "x": 10.5, "y": 4.8, "w": 1.5},
+ {"matrix": [4, 3], "x": 12, "y": 4.8, "w": 1.5},
+ {"matrix": [6, 0], "x": 13.5, "y": 4.8, "w": 2.25},
+ {"matrix": [4, 8], "x": 15.75, "y": 4.8},
+ {"matrix": [6, 4], "x": 16.75, "y": 4.8},
+ {"matrix": [6, 1], "x": 17.75, "y": 4.8}
]
}
}
diff --git a/keyboards/ms_sculpt/ms_sculpt.h b/keyboards/ms_sculpt/ms_sculpt.h
deleted file mode 100644
index 056f7d5b5d..0000000000
--- a/keyboards/ms_sculpt/ms_sculpt.h
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2022 Jean Bernard (@jn-bernard)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "quantum.h"
-
-#define LAYOUT_iso( \
- k4D, k7C, k7B, k1B, k4B, k1A, k1F, k79, k77, k75, k78, k73, k13, k71, k31, k01, k23, \
- k7D, k0D, k0C, k2D, k1D, k7A, k7F, k09, k07, k05, k04, k15, k74, k08, k03, k21, \
- k0A, k0B, k1C, k2B, k2A, k2F, k19, k29, k27, k25, k24, k14, k17, k51, \
- k2C, k3D, k4C, k3B, k3A, k4A, k49, k39, k37, k35, k34, k45, k65, k33, k18, k11, \
- k5E, k6C, k5D, k5C, k5B, k5A, k6A, k69, k59, k57, k55, k44, k52, k63, k53, \
- k6H, k3F, k4G, k6B, k68, k46, k43, k60, k48, k64, k61 \
-) \
-{ \
- {KC_NO, k01, KC_NO, k03, k04, k05, KC_NO, k07, k08, k09, k0A, k0B, k0C, k0D, KC_NO, KC_NO, KC_NO, KC_NO}, \
- {KC_NO, k11, KC_NO, k13, k14, k15, KC_NO, k17, k18, k19, k1A, k1B, k1C, k1D, KC_NO, k1F, KC_NO, KC_NO}, \
- {KC_NO, k21, KC_NO, k23, k24, k25, KC_NO, k27, KC_NO, k29, k2A, k2B, k2C, k2D, KC_NO, k2F, KC_NO, KC_NO}, \
- {KC_NO, k31, KC_NO, k33, k34, k35, KC_NO, k37, KC_NO, k39, k3A, k3B, k6C, k3D, KC_NO, k3F, KC_NO, KC_NO}, \
- {KC_NO, KC_NO, KC_NO, k43, k44, k45, k46, KC_NO, k48, k49, k4A, k4B, k4C, k4D, KC_NO, KC_NO, k4G, KC_NO}, \
- {KC_NO, k51, k52, k53, k65, k55, KC_NO, k57, KC_NO, k59, k5A, k5B, k5C, k5D, k5E, KC_NO, KC_NO, KC_NO}, \
- {k60, k61, KC_NO, k63, k64, KC_NO, KC_NO, KC_NO, k68, k69, k6A, k6B, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, k6H}, \
- {KC_NO, k71, KC_NO, k73, k74, k75, KC_NO, k77, k78, k79, k7A, k7B, k7C, k7D, KC_NO, k7F, KC_NO, KC_NO} \
-}