]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/four_banger/keymaps/default/keymap.c
[Keymap] Add personal keymaps (#6217)
[qmk_firmware.git] / keyboards / four_banger / keymaps / default / keymap.c
1 #include QMK_KEYBOARD_H
2
3 enum custom_keycodes {
4   UP_URL = SAFE_RANGE
5 };
6
7 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8   LAYOUT_ortho_2x2(
9     KC_1, KC_U,
10     KC_P, UP_URL
11   ),
12 };
13
14 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
15   switch (keycode) {
16     case UP_URL:
17       if (record->event.pressed) {
18         SEND_STRING("http://1upkeyboards.com");
19       }
20       return false;
21       break;
22   }
23   return true;
24 }