keymap.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #include QMK_KEYBOARD_H
  2. #ifdef RGBLIGHT_ENABLE
  3. #include "rgblight.h"
  4. #endif
  5. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  6. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  7. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  8. // entirely and just use numbers.
  9. #define _BL 0
  10. #define _FL 1
  11. #define _______ KC_TRNS
  12. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  13. /* Keymap _BL: (Base Layer) Default Layer
  14. * ,-------------------.
  15. * | T | G | B |Spac|
  16. * |----|----|----|----|
  17. * | R | F | V | Fn |
  18. * |----|----|----|----|
  19. * | E | D | C | OS |
  20. * |----|----|----|----|
  21. * | W | S | X | Alt|
  22. * |----|----|----|----|
  23. * | Q | A | Z | Ctl|
  24. * |----|----|----|----|
  25. * | Esc| Tab|Shft| Fn2|
  26. * `-------------------'
  27. */
  28. [_BL] = LAYOUT_ortho_6x4(
  29. KC_T, KC_G, KC_B, KC_SPACE,\
  30. KC_R, KC_F, KC_V, MO(1), \
  31. KC_E, KC_D, KC_C, KC_LGUI, \
  32. KC_W, KC_S, KC_X, KC_LALT, \
  33. KC_Q, KC_A, KC_Z, KC_LCTL, \
  34. KC_TAB, KC_ESC, KC_LSHIFT, MO(1)
  35. ),
  36. /* Keymap _FL: Function Layer
  37. * ,-------------------.
  38. * | 5 | F5 | F11|Spac|
  39. * |----|----|----|----|
  40. * | 4 | F4 | F10| |
  41. * |----|----|----|----|
  42. * | 3 | F3 | F9 | OS |
  43. * |----|----|----|----|
  44. * | 2 | F2 | F8 | Alt|
  45. * |----|----|----|----|
  46. * | 1 | F1 | F7 | Ctl|
  47. * |----|----|----|----|
  48. * | ` | Del|Shft| |
  49. * `-------------------'
  50. */
  51. [_FL] = LAYOUT_ortho_6x4(
  52. KC_5, KC_F5, KC_F11, _______, \
  53. KC_4, KC_F4, KC_F10, _______, \
  54. KC_3, KC_F3, KC_F9, _______, \
  55. KC_2, KC_F2, KC_F8, _______, \
  56. KC_1, KC_F1, KC_F7, _______, \
  57. KC_GRV,KC_DEL, _______, _______
  58. ),
  59. };