logo

qmk_firmware

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

keymap.c (1721B)


  1. /* Copyright 2021 keyquest
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #include QMK_KEYBOARD_H
  14. /* what each layer does */
  15. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  16. /*
  17. * M = Macro
  18. * ┌────┬────┬────┐
  19. * │ M1 │ M2 │ M3 │
  20. * ├────┼────┼────┤
  21. * │ M4 │ M5 │ M6 │
  22. * ├────┼────┼────┤
  23. * │ M7 │ M8 │ M9 │
  24. * └────┴────┴────┘
  25. */
  26. [0] = LAYOUT_ortho_3x3(
  27. KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK,
  28. C(KC_C), C(KC_V), G(KC_V),
  29. KC_AUDIO_VOL_UP, KC_AUDIO_VOL_DOWN, MO(1)
  30. ),
  31. [1] = LAYOUT_ortho_3x3(
  32. _______, _______, _______,
  33. _______, _______, _______,
  34. _______, MO(2), _______
  35. ),
  36. [2] = LAYOUT_ortho_3x3(
  37. _______, _______, _______,
  38. _______, _______, _______,
  39. MO(3), _______, _______
  40. ),
  41. [3] = LAYOUT_ortho_3x3(
  42. UG_TOGG, RGB_M_P, RGB_M_B,
  43. RGB_M_R, RGB_M_SW, RGB_M_G,
  44. _______, _______, _______
  45. )
  46. };