From e2849246765f550805836f2bf5c2e6bea5443d07 Mon Sep 17 00:00:00 2001 From: Christoph Zimmermann Date: Wed, 23 Oct 2024 22:20:12 +0200 Subject: [PATCH] Add layouts for ANSI and ISO keyboards Add layout variants to support both 101 and 102 key variants with the same VIA definition. --- src/ibm/model_m/ctrl_m/ctrl_m.json | 31 +++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/ibm/model_m/ctrl_m/ctrl_m.json b/src/ibm/model_m/ctrl_m/ctrl_m.json index 563162d364..4c7ce63b9f 100644 --- a/src/ibm/model_m/ctrl_m/ctrl_m.json +++ b/src/ibm/model_m/ctrl_m/ctrl_m.json @@ -4,6 +4,9 @@ "productId": "0x6180", "matrix": {"rows": 8, "cols": 16}, "layouts": { + "labels": [ + "ISO Enter" + ], "keymap": [ [ { @@ -100,7 +103,11 @@ "1,10", "1,8", { - "x": 0.25, + "w": 1.5 + }, + "5,6\n\n\n0,0", + { + "x": -1.25, "c": "#777777", "w": 1.25, "h": 2, @@ -108,7 +115,7 @@ "h2": 1, "x2": -0.25 }, - "6,6", + "6,6\n\n\n0,1", { "x": 0.25 }, @@ -147,7 +154,16 @@ "5,9", "5,10", "0,10", - "6,10", + { + "c": "#777777", + "w": 2.25 + }, + "6,6\n\n\n0,0", + { + "x": -2.25, + "c": "#cccccc" + }, + "6,10\n\n\n0,1", { "x": 4.75 }, @@ -158,13 +174,18 @@ [ { "c": "#aaaaaa", + "w": 2.25 + }, + "1,1\n\n\n0,0", + { + "x": -2.25, "w": 1.25 }, - "1,1", + "1,1\n\n\n0,1", { "c": "#cccccc" }, - "0,3", + "0,3\n\n\n0,1", "6,2", "6,3", "6,4",