keymap.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. Copyright 2021 v3ritas <v3ritas@tempoturtle.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. enum layers {
  16. _LAYER0,
  17. _LAYER1,
  18. _LAYER2,
  19. _LAYER3,
  20. };
  21. // clang-format off
  22. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  23. [_LAYER0] = LAYOUT(
  24. KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_MINUS, \
  25. KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, \
  26. KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_SLASH, \
  27. KC_NUMLOCK, KC_KP_0, KC_KP_DOT, KC_KP_ASTERISK, \
  28. KC_KP_ENTER, KC_EQUAL),
  29. [_LAYER1] = LAYOUT(
  30. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  31. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  32. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  33. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  34. KC_TRNS, KC_TRNS),
  35. [_LAYER2] = LAYOUT(
  36. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  37. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  38. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  39. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  40. KC_TRNS, KC_TRNS),
  41. [_LAYER3] = LAYOUT(
  42. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  43. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  44. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  45. KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
  46. KC_TRNS, KC_TRNS)
  47. };
  48. // clang-format on