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.

75 lines
4.1 KiB

  1. /* Copyright 2019 Frederick Hirsch
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. extern keymap_config_t keymap_config;
  18. #define _QWERTY 0
  19. #define _RAISE 3
  20. enum eco_keycodes {
  21. QWERTY = SAFE_RANGE,
  22. RAISE
  23. };
  24. #define JC_Z CTL_T(KC_Z)
  25. #define JC_X ALT_T(KC_X)
  26. #define JC_C GUI_T(KC_C)
  27. #define JC_COMM GUI_T(KC_COMM)
  28. #define JC_DOT ALT_T(KC_DOT)
  29. #define JC_SLSH CTL_T(KC_SLSH)
  30. #define JC_CAPS LT(_RAISE,KC_CAPS)
  31. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  32. /* Qwerty
  33. * ,-------------------------------------------------------------------------------------------------.
  34. * | Tab | 1 | 2 | 3 | 4 | 5 | - | = | 6 | 7 | 8 | 9 | 10 | Bksp |
  35. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  36. * | ESC | Q | W | E | R | T | Home | PgUp | Y | U | I | O | P | ' |
  37. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  38. * | Raise| A | S | D | F | G | End | PgDn | H | J | K | L | ; | Enter|
  39. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  40. * | Shift| Z | X | C | V | B | Space | N | M | , | . | / | Shift|
  41. * | | Ctrl | Alt | GUI | | | | GUI | Alt | Ctrl | |
  42. * `-------------------------------------------------------------------------------------------------'
  43. */
  44. [_QWERTY] = LAYOUT(
  45. KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
  46. KC_GESC, 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_QUOT,
  47. JC_CAPS, 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_ENT,
  48. KC_LSFT, JC_Z, JC_X, JC_C, KC_V, KC_B, KC_SPC, KC_SPC, KC_N, KC_M, JC_COMM, JC_DOT, JC_SLSH, KC_RSFT
  49. ),
  50. /* Raise
  51. * ,-------------------------------------------------------------------------------------------------.
  52. * | ` | F1 | F2 | F3 | F4 | F5 | | | F6 | F7 | F8 | F9 | F0 | Del |
  53. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  54. * | Del | | Up | | | | |PrntSc| | | | [ | ] | \ |
  55. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  56. * | | Left | Down | Right| | |ScrLck|Pause | | | | | | |
  57. * |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
  58. * | | | | | | | | | | | |Insert|
  59. * `-------------------------------------------------------------------------------------------------'
  60. */
  61. [_RAISE] = LAYOUT(
  62. KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
  63. _______, _______, KC_UP, _______, _______, _______, _______, KC_PSCR, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS,
  64. _______, KC_LEFT, KC_DOWN, KC_RIGHT,_______, _______, KC_SLCK, KC_PAUS, _______, _______, _______, _______, _______, _______,
  65. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS
  66. )
  67. };