Skip to content

Commit

Permalink
RGB -> UG for underglow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhruiz committed Jul 6, 2024
1 parent b6d059a commit 1df4374
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
26 changes: 13 additions & 13 deletions keyboards/acheron/shark/beta/keymaps/rhruiz/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

#ifdef ENCODER_ENABLE
typedef enum {
ENC_VOLUME, ENC_RGB_MOD, ENC_RGB_VAL, ENC_RGB_HUE, ENC_RGB_SAT
ENC_VOLUME, ENC_UG_MOD, ENC_UG_VAL, ENC_UG_HUE, ENC_UG_SAT
} RHRUIZ_ENCODER_MODE;

RHRUIZ_ENCODER_MODE _current_encoder_mode;
Expand All @@ -163,10 +163,10 @@ void _encoder_volume_down(void) {

void (*rhruiz_encoder_handlers[][2]) (void) = {
[ENC_VOLUME] = {&_encoder_volume_down, &_encoder_volume_up},
[ENC_RGB_MOD] = {&rgblight_step_reverse, &rgblight_step},
[ENC_RGB_VAL] = {&rgblight_decrease_val, &rgblight_increase_val},
[ENC_RGB_HUE] = {&rgblight_decrease_hue, &rgblight_increase_hue},
[ENC_RGB_SAT] = {&rgblight_decrease_sat, &rgblight_increase_sat},
[ENC_UG_MOD] = {&rgblight_step_reverse, &rgblight_step},
[ENC_UG_VAL] = {&rgblight_decrease_val, &rgblight_increase_val},
[ENC_UG_HUE] = {&rgblight_decrease_hue, &rgblight_increase_hue},
[ENC_UG_SAT] = {&rgblight_decrease_sat, &rgblight_increase_sat},
};
#endif

Expand Down Expand Up @@ -226,17 +226,17 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
_current_encoder_mode = ENC_VOLUME;
return true;

case RGB_MOD:
_current_encoder_mode = ENC_RGB_MOD;
case UG_NEXT:
_current_encoder_mode = ENC_UG_MOD;
return false;
case RGB_VAI:
_current_encoder_mode = ENC_RGB_VAL;
case UG_VALU:
_current_encoder_mode = ENC_UG_VAL;
return false;
case RGB_HUI:
_current_encoder_mode = ENC_RGB_HUE;
case UG_HUEU:
_current_encoder_mode = ENC_UG_HUE;
return false;
case RGB_SAI:
_current_encoder_mode = ENC_RGB_SAT;
case UG_SATU:
_current_encoder_mode = ENC_UG_SAT;
return false;
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/dz60/keymaps/rhruiz/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

[_CFG] = LAYOUT_wrapper(
_______, ________L_CFG_1________, ________R_CFG_1________, RGB_SPD, RGB_SPI, KC_MAKE, KC_KBVSN,
_______, ________L_CFG_1________, ________R_CFG_1________, UG_SPDD, UG_SPDU, KC_MAKE, KC_KBVSN,
_______, ________L_CFG_2________, ________R_CFG_2________, _______, _______, QK_BOOT,
_______, ________L_CFG_3________, ________R_CFG_3________, _______, _______,
_______, _______, BL_TOGG, BL_STEP, BL_BRTG, _______, QK_BOOT, ________R_CFG_4________, _______, _______,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/keebio/viterbi/keymaps/rhruiz_outer/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//,--------+--------+--------+--------+--------+--------+--------. ,---------+-------+--------+--------+--------+--------+--------.
________L_CFG_1________ , _______, _______, KC_MAKE, _______, ________R_CFG_1________ ,
//|--------------------------------------------+--------+--------| |--------+--------+--------------------------------------------+
________L_CFG_2________ , RGB_SAD, QK_BOOT, QK_BOOT, _______, ________R_CFG_2________ ,
________L_CFG_2________ , UG_SATD, QK_BOOT, QK_BOOT, _______, ________R_CFG_2________ ,
//|--------------------------------------------+--------+--------| |--------+--------+--------------------------------------------+
________L_CFG_3________ , _______, _______, _______, _______, ________R_CFG_3________ ,
//|--------------------------------------------+--------+--------| |--------+--------+--------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion users/rhruiz/layouts/ortho_5x14.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//,-------+--------------------------------------------+--------. ,--------+--------------------------------------------+--------.
_______, ________L_CFG_1________ , _______, KC_MAKE, ________R_CFG_1________ , _______,
//|-------+--------------------------------------------+--------| |--------+--------------------------------------------+--------+
QK_BOOT, ________L_CFG_2________ , RGB_SAD, _______, ________R_CFG_2________ , QK_BOOT,
QK_BOOT, ________L_CFG_2________ , UG_SATD, _______, ________R_CFG_2________ , QK_BOOT,
//|-------+--------------------------------------------+--------| |--------+--------------------------------------------+--------+
_______, ________L_CFG_3________ , _______, _______, ________R_CFG_3________ , _______,
//|-------+--------------------------------------------+--------| |--------+--------------------------------------------+--------+
Expand Down
8 changes: 4 additions & 4 deletions users/rhruiz/layouts/wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
// `--------+--------+--------+--------+--------'

// .--------------------------------------------.
#define ________L_RSE_1________ KC_SCRL, KC_PAUS, NV_MICT, _______, RGB_VAD
#define ________L_RSE_1________ KC_SCRL, KC_PAUS, NV_MICT, _______, UG_VALD
// |--------+--------+--------+--------+--------|
#define ________L_RSE_2________ _____NUMBERS_LEFT_____
// |--------+--------+--------+--------+--------|
Expand All @@ -122,7 +122,7 @@
// `--------+--------+--------+--------+--------'

// .--------------------------------------------.
#define ________R_RSE_1________ RGB_VAI, KC_MRWD, KC_MFFD, KC_MPLY, KC_MUTE
#define ________R_RSE_1________ UG_VALU, KC_MRWD, KC_MFFD, KC_MPLY, KC_MUTE
// |--------+--------+--------+--------+--------|
#define ________R_RSE_2________ _____NUMBERS_RGHT_____
// |--------+--------+--------+--------+--------|
Expand Down Expand Up @@ -152,9 +152,9 @@
// `--------+--------+--------+--------+--------'

// .--------+--------+--------+--------+--------.
#define ________L_CFG_1________ KC_SCRL, KC_PAUS, RGB_SAD, RGB_VAD, RGB_HUD
#define ________L_CFG_1________ KC_SCRL, KC_PAUS, UG_SATD, UG_VALD, UG_HUED
// |--------+--------+--------+--------+--------|
#define ________L_CFG_2________ RGB_TOG, RGB_MOD, RGB_SAI, RGB_VAI, RGB_HUI
#define ________L_CFG_2________ UG_TOGG, UG_NEXT, UG_SATU, UG_VALU, UG_HUEU
// |--------+--------+--------+--------+--------|
#define ________L_CFG_3________ KC_OLBR, _______, _______, _______, TG_GAME
// |--------+--------+--------+--------+--------|
Expand Down

0 comments on commit 1df4374

Please sign in to comment.