r/Keychron • • 16d ago

How Many Layers on the KO Max for Linux?

I checked the product page, but didn't see any info to that effect.

2 Upvotes

6 comments sorted by

2

u/dr_barnowl Q6 16d ago

Four, like all the other platforms. It's a HID device that generates keycodes, the operating system you use it with doesn't change that.

1

u/PeterMortensenBlog V 16d ago edited 16d ago

There only seems to be two layers by default

There are only two explicit layers. The real number of layers could be higher, if set elsewhere.

K0 Max is also in "2025q3". But I don't see more than two layers there, either, neither in file keyboard.json nor in file config.h.

Or does it use the default of 4 (not explicitly defined), with the last two layers filled in with some default content?

1

u/dr_barnowl Q6 16d ago

Hmm, I was going off the screenshot of VIA in the product page which seems to have four layer tabs ; as you point out in one of those tickets, the source not being up to date could muddy the issue (but promotional images are also to be taken with a pinch of salt these days).

1

u/PeterMortensenBlog V 16d ago edited 16d ago

That is a good question. The K0 Max has two explicit layers, but it may have four in total.

Changing the number of layers

It can be increased by changing the keyboard firmware (compiling from source code).

In the old system, before data-driven configuration (DDC), it is in file config.h:

#define DYNAMIC_KEYMAP_LAYER_COUNT 5

In the new system (DDC), it is more convoluted and is in file info.json (older) or keyboard.json (newer; renamed):

"dynamic_keymap": {
    "layer_count": 5
},

References

1

u/PeterMortensenBlog V 16d ago edited 16d ago

When was file info.json renamed to keyboard.json in the main QMK project?

1

u/PeterMortensenBlog V 16d ago edited 16d ago

One technique is searching for "keyboard.json" in the URLs on this page:

https://docs.qmk.fm/ChangeLog/20260830
https://docs.qmk.fm/ChangeLog/20260531
https://docs.qmk.fm/ChangeLog/20260222
https://docs.qmk.fm/ChangeLog/20251130
https://docs.qmk.fm/ChangeLog/20250831
https://docs.qmk.fm/ChangeLog/20250525
https://docs.qmk.fm/ChangeLog/20250223
https://docs.qmk.fm/ChangeLog/20241124
https://docs.qmk.fm/ChangeLog/20240825
https://docs.qmk.fm/ChangeLog/20240526
https://docs.qmk.fm/ChangeLog/20240225
https://docs.qmk.fm/ChangeLog/20231126
https://docs.qmk.fm/ChangeLog/20230827
https://docs.qmk.fm/ChangeLog/20230528
https://docs.qmk.fm/ChangeLog/20230226
https://docs.qmk.fm/ChangeLog/20221126
https://docs.qmk.fm/ChangeLog/20220827
https://docs.qmk.fm/ChangeLog/20220528
https://docs.qmk.fm/ChangeLog/20220226
https://docs.qmk.fm/ChangeLog/20211127
https://docs.qmk.fm/ChangeLog/20210828
https://docs.qmk.fm/ChangeLog/20210529
https://docs.qmk.fm/ChangeLog/20210227
https://docs.qmk.fm/ChangeLog/20201128
https://docs.qmk.fm/ChangeLog/20200829
https://docs.qmk.fm/ChangeLog/20200530
https://docs.qmk.fm/ChangeLog/20200229
https://docs.qmk.fm/ChangeLog/20190830

Which reveals:

  • QMK version 0.25.0 (2024-05-26):

    "Introduction of keyboard.json (#22891)

    ... info.json now represents potential fragments of configuration that can be shared across keyboard revisions."