diff options
author | lokher <lokher@gmail.com> | 2022-12-06 17:04:10 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-06 17:04:10 +0800 |
commit | 27fc28fd2ff52e079a5bc58d6aaea4c752420615 (patch) | |
tree | 7ac943fb1ba4f430a7220efd18f66f6a77205c30 /users/ericgebhart/defs/encoders.def | |
parent | e736133392fe6427cfb995da0787337189828272 (diff) | |
parent | 2709b6ed616f8012ff4cfd3ee69a822a8d188351 (diff) |
Merge upstream master
Diffstat (limited to 'users/ericgebhart/defs/encoders.def')
-rw-r--r-- | users/ericgebhart/defs/encoders.def | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/users/ericgebhart/defs/encoders.def b/users/ericgebhart/defs/encoders.def new file mode 100644 index 0000000000..638d3fbf4b --- /dev/null +++ b/users/ericgebhart/defs/encoders.def @@ -0,0 +1,65 @@ +// Layer/none, encoder index 0/1, CW_KC, CCW_KC, Qualifying mod or none +// LAYER_NONE and MOD_NONE for a single use. +// LEFT and RIGHT for index. 0 and 1... + +// default encoders, all layers no mods. +ENCODER_ACTION(LAYER_NONE, RIGHT, KC_PGDN, KC_PGUP, MOD_NONE) +ENCODER_ACTION(LAYER_NONE, LEFT, KC_DOWN, KC_UP, MOD_NONE) +ENCODER_ACTION(LAYER_NONE, LEFT, KC_PGDN, KC_PGUP, MOD_LSFT) + +// Symbol layer encoders. +// left and right. +ENCODER_ACTION(_SYMB_EN, LEFT, KC_LEFT, KC_RIGHT, MOD_NONE) +// word left or right. +ENCODER_ACTION(_SYMB_EN, LEFT, LCTL(KC_LEFT), LCTL(KC_RIGHT), MOD_NONE) + +// Nav layer encoders. +ENCODER_ACTION(_NAV, LEFT, KC_TAB, S(KC_TAB), MOD_NONE) +ENCODER_ACTION(_NAV, RIGHT, A(KC_TAB), A(S(KC_TAB)), MOD_NONE) +ENCODER_ACTION(_NAV, RIGHT, KC_VOLU, KC_VOLD, MOD_NONE) + +// RGB functions for the RGB layer. +#ifdef RGB_MATRIX_ENABLE + ENCODER_FUNCTION(_RGB, LEFT, + rgb_matrix_increase_speed_noeeprom, + rgb_matrix_decrease_speed_noeeprom, MOD_NONE) + + ENCODER_FUNCTION(_RGB, RIGHT, + rgb_matrix_increase_hue_noeeprom, + rgb_matrix_decrease_hue_noeeprom, MOD_NONE) + + ENCODER_FUNCTION(_RGB, LEFT, + rgb_matrix_increase_sat_noeeprom, + rgb_matrix_decrease_sat_noeeprom, MOD_LSFT) + + ENCODER_FUNCTION(_RGB, RIGHT, + rgb_matrix_increase_val_noeeprom, + rgb_matrix_decrease_val_noeeprom, MOD_LSFT) + + ENCODER_FUNCTION(_RGB, LEFT, + rgb_matrix_step_noeeprom; + rgb_matrix_step_reverse_noeeprom, MOD_LCTL) + +#elif defined(RGBLIGHT_ENABLE) + + ENCODER_FUNCTION(_RGB, LEFT, + rgblight_increase_speed_noeeprom, + rgblight_decrease_speed_noeeprom, MOD_NONE) + + ENCODER_FUNCTION(_RGB, RIGHT, + rgblight_increase_hue_noeeprom, + rgblight_decrease_hue_noeeprom, MOD_NONE) + + ENCODER_FUNCTION(_RGB, LEFT, + rgblight_increase_sat_noeeprom, + rgblight_decrease_sat_noeeprom, MOD_LSFT) + + ENCODER_FUNCTION(_RGB, RIGHT, + rgblight_increase_val_noeeprom, + rgblight_decrease_val_noeeprom, MOD_LSFT) + + + ENCODER_FUNCTION(_RGB, LEFT, + rgblight_step_noeeprom, + rgblight_step_reverse_noeeprom, MOD_LCTL) + #endif // RGB_MATRIX_ENABLE || RGBLIGHT_ENABLE |