diff options
Diffstat (limited to 'keyboards/the_uni/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/the_uni/keymaps/default/keymap.c | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/keyboards/the_uni/keymaps/default/keymap.c b/keyboards/the_uni/keymaps/default/keymap.c new file mode 100644 index 000000000..01674d948 --- /dev/null +++ b/keyboards/the_uni/keymaps/default/keymap.c | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Peter C. Park <peter@stenokeyboards.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | #include "keymap_steno.h" | ||
| 20 | |||
| 21 | enum uni_layers { | ||
| 22 | /* | ||
| 23 | _QWERTY, | ||
| 24 | _CHOOSE, | ||
| 25 | */ | ||
| 26 | _PLOVER, | ||
| 27 | }; | ||
| 28 | |||
| 29 | /* | ||
| 30 | enum uni_keycodes { | ||
| 31 | PLOVER, | ||
| 32 | QWERTY | ||
| 33 | }; | ||
| 34 | */ | ||
| 35 | |||
| 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 37 | /* | ||
| 38 | [_QWERTY] = LAYOUT( | ||
| 39 | KC_Q, KC_W, KC_E, KC_R, LT(_CHOOSE, KC_T), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, | ||
| 40 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 41 | KC_1, KC_C, KC_V, KC_N, KC_M, KC_2), | ||
| 42 | |||
| 43 | [_CHOOSE] = LAYOUT( | ||
| 44 | _______, _______, _______, _______, _______, PLOVER, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______), | ||
| 47 | */ | ||
| 48 | [_PLOVER] = LAYOUT( | ||
| 49 | STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR , | ||
| 50 | STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR , | ||
| 51 | STN_N1, STN_A, STN_O, STN_E, STN_U, STN_N2), | ||
| 52 | |||
| 53 | }; | ||
| 54 | |||
| 55 | /* | ||
| 56 | switch (keycode) { | ||
| 57 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 58 | case PLOVER: | ||
| 59 | if (!record->event.pressed) { | ||
| 60 | layer_on(_PLOVER); | ||
| 61 | } | ||
| 62 | return false; | ||
| 63 | break; | ||
| 64 | case QWERTY: | ||
| 65 | if (!record->event.pressed) { | ||
| 66 | layer_on(_QWERTY); | ||
| 67 | } | ||
| 68 | return false; | ||
| 69 | break; | ||
| 70 | } | ||
| 71 | return true; | ||
| 72 | } | ||
| 73 | */ | ||
| 74 | |||
| 75 | void matrix_init_user() { | ||
| 76 | steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT | ||
| 77 | } | ||
