logo

qmk_firmware

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

keymap.c (2627B)


  1. /* Copyright 2022 Leo Deng (@myst729)
  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. #define LCTL_Z LCTL_T(KC_Z)
  18. #define LGUI_X LGUI_T(KC_X)
  19. #define LALT_C LALT_T(KC_C)
  20. #define FN1_V LT(1, KC_V)
  21. #define FN2_B LT(2, KC_B)
  22. #define FN3_N LT(3, KC_N)
  23. #define FN4_M LT(4, KC_M)
  24. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  25. [0] = LAYOUT_ortho_3x10(
  26. KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
  27. KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RSFT,
  28. LCTL_Z, LGUI_X, LALT_C, FN1_V, FN2_B, FN3_N, FN4_M, KC_SPC, KC_BSPC, KC_ENT),
  29. [1] = LAYOUT_ortho_3x10(
  30. KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
  31. KC_TAB, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, _______,
  32. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  33. [2] = LAYOUT_ortho_3x10(
  34. KC_ESC, KC_GRV, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, KC_UP, _______,
  35. KC_CAPS, _______, KC_COMM, KC_DOT, KC_SLSH, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT,
  36. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  37. [3] = LAYOUT_ortho_3x10(
  38. KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, KC_INS, KC_HOME, KC_PGUP,
  39. KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_DEL, KC_END, KC_PGDN,
  40. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
  41. [4] = LAYOUT_ortho_3x10(
  42. QK_BOOT, KC_BRID, KC_BRIU, _______, RM_TOGG, RM_HUEU, RM_SATU, RM_VALU, RM_SPDU, RM_NEXT,
  43. KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_M_B, RM_HUED, RM_SATD, RM_VALD, RM_SPDD, RM_PREV,
  44. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
  45. };