logo

qmk_firmware

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

keymap.c (1758B)


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