logo

qmk_firmware

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

keymap.c (3128B)


  1. /* Copyright 2020 imchipwood
  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. /*
  19. BASE LAYER
  20. /-----------------------------------------------------`
  21. | | 7 | 8 | 9 | Bkspc |
  22. | |---------|---------|---------|---------|
  23. | | 4 | 5 | 6 | Esc |
  24. | |---------|---------|---------|---------|
  25. | | 1 | 2 | 3 | Tab |
  26. |-------------|---------|---------|---------|---------|
  27. | Play Pause | TT(1) | 0 | . | Enter |
  28. \-----------------------------------------------------'
  29. */
  30. [0] = LAYOUT(
  31. KC_7, KC_8, KC_9, KC_BSPC,
  32. KC_4, KC_5, KC_6, KC_ESC,
  33. KC_1, KC_2, KC_3, KC_TAB,
  34. KC_MUTE, TT(1), KC_0, LSFT_T(KC_DOT), KC_ENTER
  35. ),
  36. /*
  37. SUB LAYER
  38. /-----------------------------------------------------`
  39. | | | | | Reset |
  40. | |---------|---------|---------|---------|
  41. | | | | | + |
  42. | |---------|---------|---------|---------|
  43. | | | | | - |
  44. |-------------|---------|---------|---------|---------|
  45. | LOCK | | | | = |
  46. \-----------------------------------------------------'
  47. */
  48. [1] = LAYOUT(
  49. _______, _______, _______, QK_BOOT,
  50. _______, _______, _______, KC_KP_PLUS,
  51. _______, _______, _______, KC_KP_MINUS,
  52. QK_LOCK, _______, _______, _______, KC_EQL
  53. ),
  54. [2] = LAYOUT(
  55. _______, _______, _______, _______,
  56. _______, _______, _______, _______,
  57. _______, _______, _______, _______,
  58. _______, _______, _______, _______, _______
  59. ),
  60. [3] = LAYOUT(
  61. _______, _______, _______, _______,
  62. _______, _______, _______, _______,
  63. _______, _______, _______, _______,
  64. _______, _______, _______, _______, _______
  65. )
  66. };