4 #include QMK_KEYBOARD_H
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.
18 enum custom_keycodes {
25 // increase readability
26 #define _______ KC_TRNS
29 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,\
33 F(2), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \
34 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, \
35 KC_LCTL, KC_LGUI,KC_LALT, F(0), F(1), KC_RGUI,KC_RALT, KC_RCTL \
39 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_UP, KC_MINS, KC_EQL, KC_DEL, \
40 _______, _______, KC_ASTR, KC_LBRC, KC_RBRC, KC_QUOT, KC_DQUO, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSLS, \
41 _______, _______, _______, KC_LPRN, KC_RPRN, KC_HOME, KC_PGUP, KC_PGDN, KC_END, _______, _______, \
42 _______, _______, _______, _______, _______, _______, _______, _______ \
46 KC_GRV, KC_LPRN, KC_RPRN, KC_DQUO, KC_QUOT, KC_SCLN, KC_COLON,KC_UNDS, KC_PLUS, _______, _______, KC_BSPC, \
47 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, \
48 _______, _______, _______, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, _______, \
49 _______, _______, _______, _______, _______, _______, BL_INC, BL_DEC \
53 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
55 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
56 KC_SYSTEM_SLEEP, _______, _______, _______, _______, _______, _______, _______ \
66 const uint16_t PROGMEM fn_actions[] = {
67 [0] = ACTION_LAYER_TAP_KEY(_LOWER, KC_SPC),
68 [1] = ACTION_LAYER_TAP_KEY(_RAISE, KC_SPC),
69 [2] = ACTION_LAYER_TAP_KEY(_ADJUST,KC_TAB),
73 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
75 // MACRODOWN only works in this function
80 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
85 if (record->event.pressed) {
87 update_tri_layer(_LOWER, _RAISE, _ADJUST);
90 update_tri_layer(_LOWER, _RAISE, _ADJUST);
95 if (record->event.pressed) {
97 update_tri_layer(_LOWER, _RAISE, _ADJUST);
100 update_tri_layer(_LOWER, _RAISE, _ADJUST);
105 if (record->event.pressed) {