You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.1 KiB

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