Initial: modular per-key RGB layer effect for ZMK
ZMK module providing per-key per-layer RGB effects via the modular effect API (zmk_rgb_effect). Extracted from darknao's fork patches. Contents: - Layer effect: registers via ZMK_RGB_EFFECT_DEFINE, renders per-key colors based on active keymap layer - Behaviors: underglow_color, underglow_battery, underglow_indicators - DTS bindings: zmk,underglow-layer + behavior bindings - Event: underglow_color_changed for reactive refresh Requires: ZMK core with rgb-modular branch (effect registration API)
This commit is contained in:
commit
569dc85e0c
15 changed files with 557 additions and 0 deletions
12
dts/bindings/behaviors/zmk,behavior-underglow-battery.yaml
Normal file
12
dts/bindings/behaviors/zmk,behavior-underglow-battery.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2024, The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Set underglow color based on battery level
|
||||
|
||||
compatible: "zmk,behavior-underglow-battery"
|
||||
|
||||
include: two_param.yaml
|
||||
|
||||
properties:
|
||||
threshold:
|
||||
type: int
|
||||
8
dts/bindings/behaviors/zmk,behavior-underglow-color.yaml
Normal file
8
dts/bindings/behaviors/zmk,behavior-underglow-color.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2024, The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Set underglow to specified color
|
||||
|
||||
compatible: "zmk,behavior-underglow-color"
|
||||
|
||||
include: one_param.yaml
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2024, The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Set underglow for num lock indicator
|
||||
|
||||
compatible: "zmk,behavior-underglow-indicators"
|
||||
|
||||
include: two_param.yaml
|
||||
|
||||
properties:
|
||||
indicator:
|
||||
type: int
|
||||
default: 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue