From 1b873646373d56f9b01388cc54e4636e00ca23fa Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 7 Dec 2020 23:57:42 -0800 Subject: [PATCH] Add my game layer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This layer is layed out so that when using a colemak keymap it turns into a mirrored QWERTY, with the WASD mirrored a second time. This is so that I don’t have to keep rebinding all of my keyboard keys when playing games and can use my left-handed mouse. --- keymap.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/keymap.c b/keymap.c index 160a2e1..a5ee374 100644 --- a/keymap.c +++ b/keymap.c @@ -148,6 +148,38 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), +/* Keymap 4: Game layer + * + * ,--------------------------------------------------. ,--------------------------------------------------. + * | | | | | | | L4 | | | | | | | | | + * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| + * | | R | ; | L | I | O | | | | F | S | K | W | Q | | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| + * | | P | U | N | Y | H |------| |------| T | E | A | D | G | | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| + * | | ' | . | , | M | J | | | | B | V | C | X | Z | | + * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' + * | | | | | | | | | | | | + * `----------------------------------' `----------------------------------' + * ,-------------. ,--------------. + * | | | | | | + * ,------|------|------| |------+--------+------. + * | | | | | | | | + * | | |------| |------| | | + * | | | | | | | | + * `--------------------' `----------------------' + */ +[GAME] = LAYOUT_ergodox_pretty( + // left hand + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, TG(GAME), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_R, KC_SCLN, KC_L, KC_I, KC_O, KC_TRNS, KC_TRNS, KC_F, KC_S, KC_K, KC_W, KC_Q, KC_TRNS, + KC_TRNS, KC_P, KC_U, KC_N, KC_Y, KC_H, KC_T, KC_E, KC_A, KC_D, KC_G, KC_TRNS, + KC_TRNS, KC_QUOT, KC_DOT, KC_COMMA, KC_M, KC_J, KC_TRNS, KC_TRNS, KC_B, KC_V, KC_C, KC_X, KC_Z, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS +), }; bool process_record_user(uint16_t keycode, keyrecord_t *record) {