[keymap] Update rys keymap with 5th semi-secure token and remap layer 1 (#9822)
parent
245d355176
commit
f0926f6c2a
|
@ -11,7 +11,8 @@ enum rys_keycodes {
|
|||
STOKEN1 = SAFE_RANGE,
|
||||
STOKEN2,
|
||||
STOKEN3,
|
||||
STOKEN4
|
||||
STOKEN4,
|
||||
STOKEN5,
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
@ -36,6 +37,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
SEND_STRING(RYS_STOKEN4);
|
||||
}
|
||||
break;
|
||||
case STOKEN5:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING(RYS_STOKEN5);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -45,22 +51,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* ,---------------------------.
|
||||
* | ST1 | ST2 | ST3 | ST4 |
|
||||
* |---------------------------|
|
||||
* | | LOCK | VOL- | VOL+ |
|
||||
* |MO(1) | LOCK | VOL- | VOL+ |
|
||||
* `---------------------------'
|
||||
*/
|
||||
[_BL0] = LAYOUT(
|
||||
STOKEN1, STOKEN2, STOKEN3, STOKEN4,
|
||||
_______, MACOSLK, KC__VOLDOWN, KC__VOLUP),
|
||||
MO(_FL1), MACOSLK, KC__VOLDOWN, KC__VOLUP),
|
||||
/* Keymap base layer (_FL1) - function layer 1
|
||||
* ,---------------------------.
|
||||
* | | | | |
|
||||
* |---------------------------|
|
||||
* | | | | |
|
||||
* | | ST5 | \ | RST |
|
||||
* `---------------------------'
|
||||
*/
|
||||
[_FL1] = LAYOUT(
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______, _______),
|
||||
_______, STOKEN5, KC_NUBS, RESET),
|
||||
/* Keymap base layer (_FL2) - function layer 2
|
||||
* ,---------------------------.
|
||||
* | | | | |
|
||||
|
|
|
@ -2,8 +2,10 @@ RYS_STOKEN1 = "$(shell security find-generic-password -a qmk -s wt8a-1 -w)"
|
|||
RYS_STOKEN2 = "$(shell security find-generic-password -a qmk -s wt8a-2 -w)"
|
||||
RYS_STOKEN3 = "$(shell security find-generic-password -a qmk -s wt8a-3 -w)"
|
||||
RYS_STOKEN4 = "$(shell security find-generic-password -a qmk -s wt8a-4 -w)"
|
||||
RYS_STOKEN5 = "$(shell security find-generic-password -a qmk -s wt8a-5 -w)"
|
||||
|
||||
CFLAGS += -DRYS_STOKEN1=\"$(RYS_STOKEN1)\"
|
||||
CFLAGS += -DRYS_STOKEN2=\"$(RYS_STOKEN2)\"
|
||||
CFLAGS += -DRYS_STOKEN3=\"$(RYS_STOKEN3)\"
|
||||
CFLAGS += -DRYS_STOKEN4=\"$(RYS_STOKEN4)\"
|
||||
CFLAGS += -DRYS_STOKEN5=\"$(RYS_STOKEN5)\"
|
Loading…
Reference in New Issue