Because global behaviors have to exist on both the central and split regardless if the user references them in their keymap, we can't omit the behavior declaration if the user doen't reference it and decide to compile it later based on the existence of the behavior declaration. The best option seems to be to decide whether to compile those behaviors based on the feature Kconfig flag. This also means that the two reset behaviors will always be compiled into both sides.
103 lines
2.4 KiB
Text
103 lines
2.4 KiB
Text
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
config ZMK_BEHAVIOR_BLUETOOTH
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_BLUETOOTH_ENABLED && ZMK_BLE
|
|
|
|
config ZMK_BEHAVIOR_CAPS_WORD
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_CAPS_WORD_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_HOLD_TAP
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_HOLD_TAP_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_KEY_PRESS
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_KEY_PRESS_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_KEY_REPEAT
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_KEY_REPEAT_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_KEY_TOGGLE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_KEY_TOGGLE_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_MACRO
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_MACRO_ENABLED || DT_HAS_ZMK_BEHAVIOR_MACRO_ONE_PARAM_ENABLED || DT_HAS_ZMK_BEHAVIOR_MACRO_TWO_PARAM_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_MOD_MORPH
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_MOD_MORPH_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_MOMENTARY_LAYER
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_MOMENTARY_LAYER_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_MOUSE_KEY_PRESS
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_MOUSE_KEY_PRESS_ENABLED
|
|
imply ZMK_MOUSE
|
|
|
|
config ZMK_BEHAVIOR_NONE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_NONE_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_OUTPUTS
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_OUTPUTS_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
|
|
bool
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_SENSOR_ROTATE_ENABLED
|
|
select ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
|
|
|
|
config ZMK_BEHAVIOR_SENSOR_ROTATE_VAR
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_SENSOR_ROTATE_VAR_ENABLED
|
|
select ZMK_BEHAVIOR_SENSOR_ROTATE_COMMON
|
|
|
|
config ZMK_BEHAVIOR_STICKY_KEY
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_STICKY_KEY_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_TAP_DANCE
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_TAP_DANCE_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_TO_LAYER
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_TO_LAYER_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_TOGGLE_LAYER
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_TOGGLE_LAYER_ENABLED
|
|
|
|
config ZMK_BEHAVIOR_TRANSPARENT
|
|
bool
|
|
default y
|
|
depends on DT_HAS_ZMK_BEHAVIOR_TRANSPARENT_ENABLED
|