keymap.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright 2019
  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. enum layers {
  18. _BASE = 0,
  19. _FN1,
  20. _FN2,
  21. };
  22. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  23. [0] = LAYOUT_ortho_4x4(
  24. KC_PGUP, KC_HOME, KC_UP, KC_END ,
  25. KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT,
  26. KC_DOT, KC_VOLU, KC_MPLY, KC_MPRV,
  27. MO(1), KC_VOLD, KC_MUTE, KC_MNXT
  28. ),
  29. [1] = LAYOUT_ortho_4x4(
  30. RESET, 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. ),
  35. [2] = LAYOUT_ortho_4x4(
  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. ),
  41. [3] = LAYOUT_ortho_4x4(
  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. )
  47. };