GithubHelp home page GithubHelp logo

MoErgo's Glove80's triggering the assert "Number of keys on layer {} does not match physical layout specification" about keymap-drawer HOT 2 CLOSED

caksoylar avatar caksoylar commented on June 26, 2024
MoErgo's Glove80's triggering the assert "Number of keys on layer {} does not match physical layout specification"

from keymap-drawer.

Comments (2)

caksoylar avatar caksoylar commented on June 26, 2024 4

Hi there, that error means that you have too many bindings in a layer, i.e. more than expected (80 for Glove80). It looks like it is getting tripped by your bindings &homey_left LCTRL &norwegian_ae and &shift_left LSHIFT &norwegian_a_ring. I assume you meant to use e.g. the &norwegian_ae as the tap binding for the hold-tap &homey_left defined here.

However you can't pass other behavior references like &norwegian_ae as parameters to ZMK behaviors (&homey_left here). You need to define a new hold-tap which has bindings = <&kp>, <&norwegian_ae>; and use it like &homey_left LCTRL 0, where 0 is a dummy value since &norwegian_ae doesn't accept a parameter. You can check out the hold-tap docs, specifically this section for information on that.

Also thanks for the nice words!

from keymap-drawer.

x10an14 avatar x10an14 commented on June 26, 2024

I'm pretty sure it's got to do with my added layering of that commit, since it seems to work with the previous commit.
E.g. git checkout HEAD^ after reproduction step #2 in opening post/message.

The resulting SVG of previous commit:

keymap

EDIT: Hiding SVG behind collapsible block for thread-readability & adding working reproduction.

from keymap-drawer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.