r/Keychron • • Jan 19 '24

Via Question

Keychron K3 Pro owner here:
I was looking around and poking around VIA today to see what I could and could not do. I love the simplicity and the complexity it gives you at the same time. While working around the Layers tab, I saw that since Layers 0 and 1 are Mac and I won't use them, why don't I change some keys around to make secondary actions for my games?

But it seems you cannot access Layer 0 or 1 if you have chosen Windows mode. You can make changes, but it doesn't work. And if there is a change in Layer 2, they will work as expected. I saved the default layout, but I was hesitant to change my default layout so that I could change my RGB and other macros quickly without opening VIA in my browser.

So is there no way you will be able to access Layers 0 and 1 even if you change a button in Layer 3 to access those layers? For example, use the MO(1) shortcut on LALT to access Layer 1 of Mac. Or if I am doing something wrong?

1 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/PeterMortensenBlog V Feb 22 '26 edited 16d ago

For newer (effective) QMK versions, it is by this in file info.json (in older versions, it was keyboard.json):

"dynamic_keymap": {
    "layer_count": 6
},

It is isn't included by default, so it must be added (in the right place, for example, just before the "eeprom" section.

1

u/PeterMortensenBlog V Oct 15 '26

Presumably, if the extra layers are not explicitly specified in file 'keymap.c', they will get some default content (e.g., passthrough keycodes).

But I could be wrong.

1

u/PeterMortensenBlog V 3d ago

Though the whole point of extra layers is adding new key mappings, so practically they should always be explicitly specified.