logo

qmk_firmware

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

keymap.c (1640B)


  1. /* Copyright 2024 Vinod Chowl (@vchowl)
  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.0 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. /*
  19. * ┌───┐
  20. * │Tog│
  21. * ├───┼───┬───┐
  22. * │ 7 │ 8 │ 9 │
  23. * ├───┼───┼───┤
  24. * │ 4 │ 5 │ 6 │
  25. * ├───┼───┼───┤
  26. * │ 1 │ 2 │ 3 │
  27. * └───┴───┴───┘
  28. */
  29. [0] = LAYOUT(
  30. TO(1),
  31. KC_7, KC_8, KC_9,
  32. KC_4, KC_5, KC_6,
  33. KC_1, KC_2, KC_3
  34. ),
  35. [1] = LAYOUT(
  36. TO(2),
  37. KC_A, KC_B, KC_C,
  38. KC_D, KC_E, KC_F,
  39. KC_G, KC_H, KC_I
  40. ),
  41. [2] = LAYOUT(
  42. TO(3),
  43. KC_J, KC_K, KC_L,
  44. KC_M, KC_N, KC_O,
  45. KC_P, KC_Q, KC_R
  46. ),
  47. [3] = LAYOUT(
  48. TO(0),
  49. KC_S, KC_T, KC_U,
  50. KC_V, KC_W, KC_X,
  51. KC_Y, KC_Z, KC_ENT
  52. )
  53. };