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.

57 lines
2.3 KiB

1 year ago
1 year ago
  1. /* Copyright 2023 9R
  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. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. [_BASE] = LAYOUT(
  19. // | little | ring | middle | index | 5way-dpad | -finger
  20. KC_GRV, KC_ESC, KC_J, KC_M, KC_RIGHT, // up
  21. KC_T, KC_3, KC_4, KC_R, KC_ENT, // forward
  22. KC_X, KC_LCTL, KC_LCTL, KC_LALT, KC_DOWN, // down
  23. KC_LSFT, KC_SPC, KC_C, KC_F, KC_LEFT, // back 2
  24. KC_LSFT, KC_6, KC_Z, KC_V, KC_UP, // back 1
  25. KC_TAB, TG(_SHOOTER), KC_I, KC_B, KC_P // special
  26. // ^side_l | ^case | ^thumb | ^side_r | ^analog click <= special row mapping
  27. ),
  28. [_SHOOTER] = LAYOUT(
  29. KC_NO, KC_NO, KC_NO, KC_NO, KC_RIGHT,
  30. KC_NO, KC_NO, KC_NO, KC_NO, KC_ENT,
  31. KC_NO, KC_NO, KC_NO, KC_NO, KC_DOWN,
  32. KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT,
  33. KC_NO, KC_NO, KC_NO, KC_NO, KC_UP,
  34. KC_NO, TG(_MISC), KC_NO, KC_NO, KC_P
  35. ),
  36. [_MISC] = LAYOUT(
  37. KC_NO, KC_NO, KC_NO, KC_NO, KC_RIGHT,
  38. KC_NO, KC_NO, KC_NO, KC_NO, KC_ENT,
  39. KC_NO, KC_NO, KC_NO, KC_NO, KC_DOWN,
  40. KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT,
  41. KC_NO, KC_NO, KC_NO, KC_NO, KC_UP,
  42. KC_NO, TG(_SETTINGS), KC_NO, KC_NO, KC_P
  43. ),
  44. [_SETTINGS] = LAYOUT(
  45. RGB_M_P, RGB_M_B, RGB_M_K, RGB_M_T, KC_RIGHT,
  46. KC_NO, RGB_SAI, RGB_VAI, RGB_HUI, KC_ENT,
  47. RGB_TOG, KC_NO, KC_NO, KC_NO , KC_DOWN,
  48. EE_CLR, RGB_SAD, RGB_VAD, RGB_HUD, KC_LEFT,
  49. QK_BOOT, AUTORUN, JOYMODE, KC_V, KC_UP,
  50. RGB_MOD, TO(_BASE), KC_NO, RGB_RMOD, KC_P
  51. )
  52. };