lotus: Enable VIA on the ANSI layout

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2022-12-23 18:41:30 +08:00
parent 916cbe294e
commit ba93584d44
3 changed files with 375 additions and 0 deletions

View File

@ -3,3 +3,17 @@
These files are generated by modeling our keyboard layouts in [KLE](http://www.keyboard-layout-editor.com).
That is then exported and converted to the format for `info.json`.
But to continue editing them, I kept the files here. Might be useful for the future.
| Layout | Standard KLE Layout | VIA KLE Layout | VIA Design |
| ------ | -------------------- | --------------- | ----------------- |
| ANSI | `ansi_layout.json` | `ansi_via.json` | `via_design.json` |
| ISO | `iso_layout.json` | | |
| JIS | `jis_layout.json` | | |
| Numpad | `numpad_layout.json` | | |
- The Standard KLE Layout is just downloaded from KLE.
- The VIA KLE Layout has matrix positions as labels instead of the actual key labels.
- VIA Design is the VIA KLE layout embedded in to a VIA compatible JSON file.
The VIA Design file can be imported into VIA, then it will discover the
keyboard. This should be submitted to the VIA [keyboard repository](https://github.com/the-via/keyboards).

View File

@ -0,0 +1,359 @@
[
[
{
"w": 1.25,
"h": 0.5
},
"7,5",
{
"x": 0.25,
"h": 0.5
},
"3,5",
{
"x": 0.25,
"h": 0.5
},
"2,5",
{
"x": 0.25,
"h": 0.5
},
"6,4",
{
"x": 0.25,
"h": 0.5
},
"3,4",
{
"x": 0.25,
"h": 0.5
},
"4,10",
{
"x": 0.25,
"h": 0.5
},
"3,10",
{
"x": 0.25,
"h": 0.5
},
"2,10",
{
"x": 0.25,
"h": 0.5
},
"1,15",
{
"x": 0.25,
"h": 0.5
},
"3,11",
{
"x": 0.25,
"h": 0.5
},
"4,8",
{
"x": 0.25,
"h": 0.5
},
"6,8",
{
"x": 0.25,
"h": 0.5
},
"3,15",
{
"x": 0.25,
"w": 1.75,
"h": 0.5
},
"0,1"
],
[
{
"y": -0.25
},
"4,2",
{
"x": 0.25
},
"5,2",
{
"x": 0.25
},
"5,5",
{
"x": 0.25
},
"5,4",
{
"x": 0.25
},
"5,6",
{
"x": 0.25
},
"4,6",
{
"x": 0.25
},
"4,7",
{
"x": 0.25
},
"5,7",
{
"x": 0.25
},
"5,10",
{
"x": 0.25
},
"5,8",
{
"x": 0.25
},
"4,13",
{
"x": 0.25
},
"2,13",
{
"x": 0.25
},
"4,14",
{
"x": 0.25,
"w": 2
},
"5,14"
],
[
{
"y": 0.25,
"w": 1.5
},
"3,2",
{
"x": 0.25
},
"0,2",
{
"x": 0.25
},
"6,5",
{
"x": 0.25
},
"2,4",
{
"x": 0.25
},
"6,6",
{
"x": 0.25
},
"3,6",
{
"x": 0.25
},
"3,7",
{
"x": 0.25
},
"6,7",
{
"x": 0.25
},
"6,10",
{
"x": 0.25
},
"3,8",
{
"x": 0.25
},
"5,13",
{
"x": 0.25
},
"6,13",
{
"x": 0.25
},
"6,14",
{
"x": 0.25,
"w": 1.5
},
"2,8"
],
[
{
"y": 0.25,
"w": 1.75
},
"4,4",
{
"x": 0.25
},
"7,2",
{
"x": 0.25
},
"4,5",
{
"x": 0.25
},
"7,14",
{
"x": 0.25
},
"7,6",
{
"x": 0.25
},
"2,6",
{
"x": 0.25
},
"2,7",
{
"x": 0.25
},
"7,7",
{
"x": 0.25
},
"7,10",
{
"x": 0.25
},
"7,8",
{
"x": 0.25
},
"7, 13",
{
"x": 0.25
},
"0,14",
{
"x": 0.25,
"w": 2.5
},
"1,14"
],
[
{
"y": 0.25,
"w": 2.5
},
"1,9",
{
"x": 0.25
},
"1,5",
{
"x": 0.25
},
"0,5",
{
"x": 0.25
},
"0,0",
{
"x": 0.25
},
"0,6",
{
"x": 0.25
},
"1,6",
{
"x": 0.25
},
"1,7",
{
"x": 0.25
},
"0,7",
{
"x": 0.25
},
"0,10",
{
"x": 0.25
},
"0,8",
{
"x": 0.25
},
"0,13",
{
"x": 0.25,
"w": 3
},
"0,9"
],
[
{
"y": 0.25,
"w": 1.25
},
"1,12",
{
"x": 0.25
},
"2,2",
{
"x": 0.25
},
"3,1",
{
"x": 0.25
},
"1,3",
{
"x": 0.25,
"w": 6
},
"1,4",
{
"x": 0.25
},
"0,3",
{
"x": 0.25
},
"0,12",
{
"x": 0.25,
"w": 1.25
},
"6,11",
{
"x": 0.25,
"w": 1.25,
"h": 0.5
},
"1,13",
{
"x": 0.25,
"w": 1.25
},
"2,15"
],
[
{
"y": -0.5,
"x": 15.5,
"w": 1.25,
"h": 0.5
},
"1,8"
]
]

View File

@ -1,3 +1,5 @@
VIA_ENABLE = yes
EXTRAKEY_ENABLE = yes # Audio control and System control
SERIAL_DRIVER = vendor