1 #include QMK_KEYBOARD_H
8 // Each layer gets a name for readability, which is then used in the keymap matrix below.
9 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
10 // Layer names don't all need to be of the same length, obviously, and you can also skip them
11 // entirely and just use numbers.
15 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
16 /* Keymap _BL: (Base Layer) Default Layer
17 * ,-------------------.
18 * |Esc |TAB | FN | BS |
19 * |----|----|----|----|
21 * |----|----|----|----|
23 * |----|----|----| + |
25 * |----|----|----|----|
27 * |----|----|----| En |
29 * `-------------------'
32 [_BL] = LAYOUT_numpad_6x4(
33 KC_ESC, KC_TAB, MO(_FL), KC_BSPC, \
34 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, \
35 KC_P7, KC_P8, KC_P9, \
36 KC_P4, KC_P5, KC_P6, KC_PPLS, \
37 KC_P1, KC_P2, KC_P3, \
38 KC_P0, KC_PDOT, KC_PENT),
40 /* Keymap _FL: Function Layer
41 * ,-------------------.
42 * |RGBT|TAB | FN | BS |
43 * |----|----|----|----|
44 * |RGBM|RGBP|BTOG| - |
45 * |----|----|----|----|
47 * |----|----|----| + |
49 * |----|----|----|----|
51 * |----|----|----| En |
53 * `-------------------'
55 [_FL] = LAYOUT_numpad_6x4(
56 RGB_TOG, KC_TAB, KC_TRNS, KC_BSPC, \
57 RGB_MOD, RGB_M_P, BL_TOGG, KC_PMNS, \
58 RGB_HUD, RGB_HUI, BL_ON, \
59 RGB_SAD, RGB_SAI, BL_OFF, KC_PPLS, \
60 RGB_VAD, RGB_VAI, KC_P3, \
61 KC_P0, RESET, KC_PENT),
64 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
67 if (record->event.pressed) {
72 if (record->event.pressed) {
77 if(record->event.pressed) {