logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (3322B)


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