summaryrefslogtreecommitdiff
path: root/keyboards/wilba_tech
diff options
context:
space:
mode:
authorRys Sommefeldt <rys@sommefeldt.com>2020-07-27 10:59:36 +0100
committerGitHub <noreply@github.com>2020-07-27 19:59:36 +1000
commitf0926f6c2adfc513d3f5c58557827d57d92c9371 (patch)
treefdbdb9db6ec6226a2f230f9e44b7f634b7cc318e /keyboards/wilba_tech
parent245d355176d6e10b448e14de495d1418e7ddb8de (diff)
[keymap] Update rys keymap with 5th semi-secure token and remap layer 1 (#9822)
Diffstat (limited to 'keyboards/wilba_tech')
-rw-r--r--keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c16
-rw-r--r--keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk2
2 files changed, 13 insertions, 5 deletions
diff --git a/keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c b/keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c
index bf0dda0fa8..f0a6edc0b8 100644
--- a/keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c
+++ b/keyboards/wilba_tech/wt8_a/keymaps/rys/keymap.c
@@ -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
* ,---------------------------.
* | | | | |
diff --git a/keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk b/keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk
index 60cbf8bfc4..ea22dca6cb 100644
--- a/keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk
+++ b/keyboards/wilba_tech/wt8_a/keymaps/rys/rules.mk
@@ -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)\" \ No newline at end of file