MattSturgeon / glove80-config

Config for my MoErgo Glove80 keyboard
MIT License
4 stars 4 forks source link

RGB layer indicator #2

Open MattSturgeon opened 1 year ago

MattSturgeon commented 1 year ago

Not sure if this is currently possible with ZMK and the Glove80, but it'd be nice to have some conditional lighting to indicate when a special layer is active.

MattSturgeon commented 1 year ago

Per key RGB support is tracked here: https://github.com/zmkfirmware/zmk/issues/554 Whole board lighting is apparently supported.

Maybe look into if this is what the RGB keys on the Magic layer use? Might be able to use that for now?

MattSturgeon commented 8 months ago

Someone got this working by patching the actual zmk firmware: diff here

TLDR;

Patch zmk_led_write_pixels in rgb_underglow.c;

Set pixels[key_index] to some HEXRGB struct, if zmk_keymap_layer_active(layer_id) is true.

steynh commented 6 months ago

I think in general it would be really useful if we could specify an RGB grid for each layer. That way it becomes possible to visually highlight groups of keys (such as a numpad block) in different layers. And then it also becomes very obvious which layer is active. Both of these would be so helpful when just getting used to a new layout.

Animations are cool to have, but they seem quite complex to implement. Whereas just a simple grid per layer seems relatively simple to implement and actually offers a lot of practical benefits.

adambiggs commented 5 months ago

That would be perfect!