Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info.json to support nickcoutsos/keymap-editor #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deekue
Copy link

@deekue deekue commented Feb 12, 2023

suggested in keymap-editor#82.
confirmed working.

suggested in [keymap-editor#82](nickcoutsos/keymap-editor#82)
@nickcoutsos
Copy link

@deekue I've recently updated the keymap editor to automatically select a pregenerated layout for keyboards that can be matched up with an entry in ZMK's list. Right now they're all automatically generated but I've been spending some time debugging issues with rotations so I can update it with the custom layouts for corne & corne-ish zen.

@paoloantinori
Copy link

paoloantinori commented Nov 1, 2023

leaving it here in case it can help others:

The current PR describes a 3x6 layout.

This is the config for a 3x5

{
  "id": "corneish_zen",
  "name": "corneish_zen",
  "layouts": {
    "LAYOUT": {
      "layout": [
        { "label":   "Q", "row": 0, "col": 0, "x":     1, "y":   0.36 },
        { "label":   "W", "row": 0, "col": 1, "x":     2, "y":   0.11 },
        { "label":   "E", "row": 0, "col": 2, "x":     3, "y": -0.015 },
        { "label":   "R", "row": 0, "col": 3, "x":     4, "y":   0.11 },
        { "label":   "T", "row": 0, "col": 4, "x":     5, "y":  0.235 },
        { "label":   "Y", "row": 0, "col": 5, "x":     9, "y":  0.235 },
        { "label":   "U", "row": 0, "col": 6, "x":    10, "y":   0.11 },
        { "label":   "I", "row": 0, "col": 7, "x":    11, "y": -0.015 },
        { "label":   "O", "row": 0, "col": 8, "x":    12, "y":   0.11 },
        { "label":   "P", "row": 0, "col": 9, "x":    13, "y":   0.36 },

        { "label":   "A", "row": 1, "col": 0, "x":     1, "y":   1.36 },
        { "label":   "S", "row": 1, "col": 1, "x":     2, "y":   1.11 },
        { "label":   "D", "row": 1, "col": 2, "x":     3, "y":  0.985 },
        { "label":   "F", "row": 1, "col": 3, "x":     4, "y":   1.11 },
        { "label":   "G", "row": 1, "col": 4, "x":     5, "y":  1.235 },
        { "label":   "H", "row": 1, "col": 5, "x":     9, "y":  1.235 },
        { "label":   "J", "row": 1, "col": 6, "x":    10, "y":   1.11 },
        { "label":   "K", "row": 1, "col": 7, "x":    11, "y":  0.985 },
        { "label":   "L", "row": 1, "col": 8, "x":    12, "y":   1.11 },
        { "label":   ";", "row": 1, "col": 9, "x":    13, "y":   1.36 },

        { "label":   "Z", "row": 2, "col": 0, "x":     1, "y":   2.36 },
        { "label":   "X", "row": 2, "col": 1, "x":     2, "y":   2.11 },
        { "label":   "C", "row": 2, "col": 2, "x":     3, "y":  1.985 },
        { "label":   "V", "row": 2, "col": 3, "x":     4, "y":   2.11 },
        { "label":   "B", "row": 2, "col": 4, "x":     5, "y":  2.235 },
        { "label":   "N", "row": 2, "col": 5, "x":     9, "y":  2.235 },
        { "label":   "M", "row": 2, "col": 6, "x":    10, "y":   2.11 },
        { "label":   ",", "row": 2, "col": 7, "x":    11, "y":  1.985 },
        { "label":   ".", "row": 2, "col": 8, "x":    12, "y":   2.11 },
        { "label":   "/", "row": 2, "col": 9, "x":    13, "y":   2.36 },

        { "label": "GUI", "row": 3, "col": 3, "x":  3.48, "y":   3.13 },
        { "label": "SPC", "row": 3, "col": 4, "x":  5.53, "y":   2.99, "r":  30, "rx": 5.73, "ry": 4.22, "h": 1.5 },
        { "label": "LWR", "row": 3, "col": 5, "x":  4.57, "y":   3.27, "r":  14, "rx": 5.07, "ry": 3.77 },
        
        { "label": "ENT", "row": 3, "col": 7, "x":  8.47, "y":   2.99, "r": -30, "rx": 9.27, "ry": 4.22, "h": 1.5 },
        { "label": "ALT", "row": 3, "col": 8, "x": 10.52, "y":   3.13 },
        { "label": "RSE", "row": 3, "col": 9, "x":  9.43, "y":   3.27, "r": -14, "rx": 9.93, "ry": 3.77 }
        
      ]
    }
  },
  "sensors": []
}

@nickcoutsos
Copy link

My layout rendering supports alternate layouts based on /chosen/zmk,matrix_transform, e.g. this layout that's loaded by default for a corneish_zen.keymap file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants