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.

95 lines
3.3 KiB

  1. /* Copyright 2018 Jack H.
  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. #define TAPPING_TOGGLE 2
  18. // Layer names
  19. #define base 0
  20. #define shrek 1
  21. #define ogre 2
  22. #define tcp 3
  23. // Layer Switches
  24. #define KC_SHRK TT(shrek)
  25. #define KC_OGRE TT(ogre)
  26. #define KC_TCP TT(tcp)
  27. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  28. [base] = LAYOUT(
  29. // ┌────────┬────────┬────────┐
  30. KC_DEL, KC_SPC, KC_ENT,
  31. // ├────────┼────────┼────────┼────────┼
  32. KC_LEFT, KC_DOWN, KC_UP , KC_RGHT,
  33. // ├────────┼────────┼────────┼────────┼
  34. KC_SHRK, KC_OGRE, KC_TCP
  35. // └────────┴────────┴────────┘
  36. ),
  37. [shrek] = LAYOUT(
  38. // ┌────────┬────────┬────────┐
  39. KC_MPRV, KC_MPLY, KC_MNXT,
  40. // ├────────┼────────┼────────┼────────┼
  41. KC_BRID, KC_VOLD, KC_VOLU, KC_BRIU,
  42. // ├────────┼────────┼────────┼────────┼
  43. _______, _______, _______
  44. // └────────┴────────┴────────┘
  45. ),
  46. [ogre] = LAYOUT(
  47. // ┌────────┬────────┬────────┐
  48. RGB_MOD, RGB_TOG, RGB_RMOD,
  49. // ├────────┼────────┼────────┼────────┼
  50. KC_F13, KC_F14, KC_F15, KC_F16,
  51. // ├────────┼────────┼────────┼────────┼
  52. _______, _______, _______
  53. // └────────┴────────┴────────┘
  54. ),
  55. [tcp] = LAYOUT(
  56. // ┌────────┬────────┬────────┐
  57. KC_WBAK, KC_WREF, KC_WFWD,
  58. // ├────────┼────────┼────────┼────────┼
  59. XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX,
  60. // ├────────┼────────┼────────┼────────┼
  61. _______, _______, _______
  62. // └────────┴────────┴────────┘
  63. ),
  64. };