2018-05-03 20:56:12 +06:00
|
|
|
#include QMK_KEYBOARD_H
|
2015-10-30 10:49:11 +06:00
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2018-05-03 20:56:12 +06:00
|
|
|
[0] = LAYOUT_grid( /* Colemak */
|
|
|
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NO ,
|
|
|
|
KC_TAB, CM_Q, CM_W, CM_F, CM_P, CM_G, CM_J, CM_L, CM_U, CM_Y, CM_SCLN, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL ,
|
|
|
|
KC_BSPC, CM_A, CM_R, CM_S, CM_T, CM_D, CM_H, CM_N, CM_E, CM_I, CM_O, KC_QUOT, KC_ENT, KC_NO, KC_PGUP,
|
|
|
|
KC_LSFT, CM_Z, CM_X, CM_C, CM_V, CM_B, CM_K, CM_M, CM_COMM, CM_DOT, CM_SLSH, KC_RSFT, KC_NO, KC_UP, KC_PGDN,
|
|
|
|
KC_LCTL, KC_LGUI, KC_NO, KC_LALT, FUNC(1), KC_SPC, KC_NO, KC_RALT, FUNC(2), KC_RGUI, KC_NO, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT,
|
|
|
|
),
|
|
|
|
[1] = LAYOUT_grid( /* function */
|
|
|
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC, KC_NO ,
|
|
|
|
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_SLEP, 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_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_MPLY,
|
|
|
|
KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, FUNC(1), KC_TRNS, KC_NO, KC_TRNS, FUNC(2), KC_TRNS, KC_NO, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT,
|
|
|
|
),
|
2015-10-30 10:49:11 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t PROGMEM fn_actions[] = {
|
2018-05-03 20:56:12 +06:00
|
|
|
[1] = ACTION_LAYER_MOMENTARY(1),
|
|
|
|
[2] = ACTION_LAYER_MOMENTARY(1),
|
2015-10-30 10:49:11 +06:00
|
|
|
};
|
|
|
|
|
2018-05-03 20:56:12 +06:00
|
|
|
const macro_t * action_get_macro(keyrecord_t * record, uint8_t id, uint8_t opt) {
|
2015-10-30 10:49:11 +06:00
|
|
|
// MACRODOWN only works in this function
|
2018-05-03 20:56:12 +06:00
|
|
|
switch (id) {
|
|
|
|
case 0:
|
|
|
|
return MACRODOWN(TYPE(KC_T), END);
|
2015-10-30 10:49:11 +06:00
|
|
|
break;
|
2018-05-03 20:56:12 +06:00
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
2015-10-30 10:49:11 +06:00
|
|
|
};
|