logo

qmk_firmware

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

keymap.c (2556B)


  1. /* Copyright 2021 Smoll Chungus (@smollchungus)
  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. _QWERTY,
  19. _LOWER,
  20. _RAISE,
  21. _SPECIAL,
  22. };
  23. #define LOWER MO(_LOWER)
  24. #define RAISE MO(_RAISE)
  25. #define SPECIAL MO(_SPECIAL)
  26. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  27. [_QWERTY] = LAYOUT(
  28. KC_UP, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
  29. KC_DOWN, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T,
  30. KC_RGHT, LOWER, KC_A, KC_S, KC_D, KC_F, KC_G,
  31. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
  32. KC_LCTL, KC_LALT, RAISE, SPECIAL
  33. ),
  34. [_LOWER] = LAYOUT(
  35. _______, _______, _______, _______, _______, _______, _______, _______,
  36. _______, _______, _______, _______, _______, _______, _______,
  37. _______, _______, _______, _______, _______, _______, _______,
  38. _______, _______, _______, _______, _______, _______,
  39. _______, _______, _______, _______
  40. ),
  41. [_RAISE] = LAYOUT(
  42. _______, _______, _______, _______, _______, _______, _______, _______,
  43. _______, _______, _______, _______, _______, _______, _______,
  44. _______, _______, _______, _______, _______, _______, _______,
  45. _______, _______, _______, _______, _______, _______,
  46. _______, _______, _______, _______
  47. ),
  48. [_SPECIAL] = LAYOUT(
  49. _______, _______, _______, _______, _______, _______, _______, _______,
  50. _______, _______, _______, _______, _______, _______, _______,
  51. _______, _______, _______, _______, _______, _______, _______,
  52. _______, _______, _______, _______, _______, _______,
  53. _______, _______, _______, _______
  54. )
  55. };