diff options
Diffstat (limited to 'keyboards/boardwalk/keymaps/mcallaster/keymap.c')
-rw-r--r-- | keyboards/boardwalk/keymaps/mcallaster/keymap.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/keyboards/boardwalk/keymaps/mcallaster/keymap.c b/keyboards/boardwalk/keymaps/mcallaster/keymap.c new file mode 100644 index 000000000..ac1df1b03 --- /dev/null +++ b/keyboards/boardwalk/keymaps/mcallaster/keymap.c | |||
@@ -0,0 +1,54 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | // Layer shorthand | ||
4 | enum layer { | ||
5 | _BASE, | ||
6 | _LOWER, | ||
7 | _RAISE, | ||
8 | _FN | ||
9 | }; | ||
10 | |||
11 | #define LOWER MO(1) | ||
12 | #define RAISE MO(2) | ||
13 | #define FN MO(3) | ||
14 | |||
15 | // Mac sleep | ||
16 | #define __SLEEP S(LCTL(KC_POWER)) | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [_BASE] = LAYOUT_ortho_hhkb( | ||
20 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_SLCK, KC_PSCR, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, \ | ||
21 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_HOME, KC_PGUP, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
22 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_END, KC_PGDN, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | ||
23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_DEL, KC_INS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \ | ||
24 | KC_CAPS, KC_LALT, KC_LGUI, RAISE, KC_SPC, KC_SPC, LOWER, KC_RGUI, KC_RALT, KC_RCTL | ||
25 | ), | ||
26 | |||
27 | [_LOWER] = LAYOUT_ortho_hhkb( | ||
28 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PAUS, KC_NLCK, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, \ | ||
29 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \ | ||
30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______, \ | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_GRV, KC_BSLS, _______, _______, _______, \ | ||
32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
33 | ), | ||
34 | |||
35 | [_RAISE] = LAYOUT_ortho_hhkb( | ||
36 | _______, KC_F11, KC_F12, _______, _______, _______, KC_PAUS, KC_NLCK, _______, _______, _______, _______, _______, _______, \ | ||
37 | _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \ | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, \ | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TILD, KC_PIPE, _______, _______, _______, \ | ||
40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
41 | ), | ||
42 | |||
43 | [_FN] = LAYOUT_ortho_hhkb( | ||
44 | __SLEEP, _______, _______, _______, _______, _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, \ | ||
45 | _______, RESET, _______, KC_MPRV, KC_MNXT, _______, RGB_SAI, RGB_HUI, _______, _______, _______, _______, _______, _______, \ | ||
46 | _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_MPLY, _______, RGB_SAD, RGB_HUD, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, \ | ||
47 | _______, _______, _______, _______, _______, _______, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, \ | ||
48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
49 | ) | ||
50 | }; | ||
51 | |||
52 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
53 | return update_tri_layer_state(state, _LOWER, _RAISE, _FN); | ||
54 | } | ||