MattSturgeon / glove80-config

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

RGB layer indicator #2

Open MattSturgeon opened 11 months ago

MattSturgeon commented 11 months 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 11 months 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 5 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 3 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 2 months ago

That would be perfect!