Skip to content

Commit

Permalink
[keymap] Update rys keymap with 5th semi-secure token and remap layer…
Browse files Browse the repository at this point in the history
… 1 (qmk#9822)
  • Loading branch information
rys authored and nicocesar committed Aug 12, 2020
1 parent d51e584 commit 5400d68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 11 additions & 5 deletions keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
};
Expand All @@ -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
* ,---------------------------.
* | | | | |
Expand Down
2 changes: 2 additions & 0 deletions keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"

0 comments on commit 5400d68

Please sign in to comment.