keymap.c (1813B)
1 #include QMK_KEYBOARD_H 2 3 #ifdef RGBLIGHT_ENABLE 4 #include "rgblight.h" 5 #endif 6 7 // Each layer gets a name for readability, which is then used in the keymap matrix below. 8 // The underscores don't mean anything - you can have a layer called STUFF or any other name. 9 // Layer names don't all need to be of the same length, obviously, and you can also skip them 10 // entirely and just use numbers. 11 #define _BL 0 12 #define _FL 1 13 14 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 15 /* Keymap _BL: (Base Layer) Default Layer 16 * ,-------------------. 17 * |Spac| N | H | Y | 18 * |----|----|----|----| 19 * | Fn | M | J | U | 20 * |----|----|----|----| 21 * |Left| , | K | I | 22 * |----|----|----|----| 23 * |Down| . | L | O | 24 * |----|----|----|----| 25 * | Up | / | ; | P | 26 * |----|----|----|----| 27 * |Rght| Ret| " |Bspc| 28 * `-------------------' 29 */ 30 [_BL] = LAYOUT_ortho_6x4( 31 KC_SPACE, KC_N, KC_H, KC_Y, 32 MO(1), KC_M, KC_J, KC_U, 33 KC_LEFT, KC_COMM, KC_K, KC_I, 34 KC_DOWN, KC_DOT, KC_L, KC_O, 35 KC_UP, KC_SLASH, KC_SCLN, KC_P, 36 KC_RIGHT, KC_ENT, KC_QUOT, KC_BSPC 37 ), 38 39 /* Keymap _FL: Function Layer 40 * ,-------------------. 41 * |Esc | F12| F6 | 6 | 42 * |----|----|----|----| 43 * | NL | M | - | 7 | 44 * |----|----|----|----| 45 * |Left| , | = | 8 | 46 * |----|----|----|----| 47 * |Down| . | [ | 9 | 48 * |----|----|----|----| 49 * | Up | / | ] | 0 | 50 * |----|----|----|----| 51 * |Rght| Ret| \ | Del| 52 * `-------------------' 53 */ 54 [_FL] = LAYOUT_ortho_6x4( 55 _______, KC_F12, KC_F6, KC_6, 56 _______, _______, KC_MINS, KC_7, 57 _______, _______, KC_EQL, KC_8, 58 _______, _______, KC_LBRC, KC_9, 59 _______, _______, KC_RBRC, KC_0, 60 _______, _______, KC_BSLS, KC_DEL 61 ), 62 };