~mlb/gergo_replicant

6b844241ea88b4596dee7f304f725624215ac012 — Matías Larre Borges 4 months ago 328f48c
Leverage Leader key for typing accents
1 files changed, 12 insertions(+), 3 deletions(-)

M keymap.c
M keymap.c => keymap.c +12 -3
@@ 26,7 26,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 * ,-------------------------------------------.                         ,-------------------------------------------.
 * | L1/ESC |   Q  |   W  |   E  |   R  |   T  |                         |   Y  |   U  |   I  |   O  |   P  |  \ |   |
 * |--------+------+------+------+------+------|------.           .------|------+------+------+------+------+--------|
 * |Ctrl/TAB|   A  |   S  |  D   |   F  |   G  | ` ~  |           | LEAD |   H  |   J  |   K  |   L  | ;  : |  ' "   |
 * |Ctrl/TAB|   A  |   S  |  D   |   F  |   G  | =    |           | LEAD |   H  |   J  |   K  |   L  | ;  : |  ' "   |
 * |--------+------+------+------+------+------|------|           |------|------+------+------+------+------+--------|
 * | LShift |   Z  |   X  |   C  |   V  |   B  | ` ~  |           |      |   N  |   M  | ,  < | . >  | /  ? |  - _   |
 * `--------+------+------+------+------+-------------'           `-------------+------+------+------+------+--------'


@@ 43,7 43,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 */
[BASE] = LAYOUT_gergo(
LT(NUMB, KC_ESC)   , KC_Q,  KC_W,   KC_E,   KC_R, KC_T,                                                      KC_Y,   KC_U,    KC_I,    KC_O,    KC_P, KC_BSLS,
MT(MOD_LCTL, KC_TAB), KC_A,  KC_S,   KC_D,   KC_F, KC_G, KC_GRAVE,                                 KC_DEL,    KC_H,   KC_J,    KC_K,    KC_L, KC_SCLN, KC_QUOT,
MT(MOD_LCTL, KC_TAB), KC_A,  KC_S,   KC_D,   KC_F, KC_G, KC_EQL,                                 KC_DEL,    KC_H,   KC_J,    KC_K,    KC_L, KC_SCLN, KC_QUOT,
KC_LSFT             , KC_Z,  KC_X,   KC_C,   KC_V, KC_B, KC_GRAVE, KC_BTN3,               KC_PGDN, KC_BSPC,   KC_N,   KC_M, KC_COMM,  KC_DOT, KC_SLSH, KC_MINS,
    KC_LGUI         , MT(MOD_LALT, KC_ENT), LT(SYMB, KC_SPC), KC_LEAD,           LM(NUMB, MOD_LGUI), LT(NUMB, KC_ENT), KC_SPC, KC_BSPC
),


@@ 135,7 135,16 @@ void matrix_scan_user(void) {
    leading = false;
    leader_end();

    // nooooooooooooooo
    // LEAD + ` ->  alt + `
    SEQ_ONE_KEY(KC_GRAVE) {
        SEND_STRING(SS_LALT("`"));
    }
    // LEAD + e ->  alt + e
    SEQ_ONE_KEY(KC_E) {
        SEND_STRING(SS_LALT("e"));
    }

    // LEAD + no -> nooooooooooooooo
    SEQ_TWO_KEYS(KC_N, KC_O) {
      SEND_STRING("http://www.nooooooooooooooo.com/");
    }