#include QMK_KEYBOARD_H
enum custom_keycodes { QMKBEST = SAFE_RANGE, QMKURL };
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_SPC, KC_1, KC_2, KC_3, KC_4, KC_5,
KC_SPC, KC_Q, KC_W, KC_E, KC_R, KC_T,
KC_SPC, KC_A, KC_S, KC_D, KC_F, KC_G,
KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B,
KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC),
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case QMKBEST:
if (record->event.pressed) {
SEND_STRING("QMK is the best thing ever!");
} else {
}
break;
case QMKURL:
if (record->event.pressed) {
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
} else {
}
break;
}
return true;
}
void matrix_init_user(void) {}
void matrix_scan_user(void) {}
void led_set_user(uint8_t usb_led) {}