logo

qmk_firmware

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

keymap.c (1201B)


  1. // Below layout is based upon /u/That-Canadian's planck layout
  2. #include QMK_KEYBOARD_H
  3. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  4. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  5. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  6. // entirely and just use numbers.
  7. enum layer_names {
  8. _QWERTY,
  9. _FUNC
  10. };
  11. // Defines for task manager and such
  12. #define CALTDEL LCTL(LALT(KC_DEL))
  13. #define TSKMGR LCTL(LSFT(KC_ESC))
  14. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  15. /* Qwerty
  16. * ,-------------.
  17. * | 1 | 2 |
  18. * |------+------|
  19. * | 3 | 4 |
  20. * |------+------|
  21. * | 5 | 6 |
  22. * |------+------|
  23. * | FUNC | 8 |
  24. * `-------------'
  25. */
  26. [_QWERTY] = LAYOUT(
  27. KC_1, KC_2,
  28. KC_3, KC_4,
  29. KC_5, KC_6,
  30. MO(_FUNC), KC_8
  31. ),
  32. /* Function
  33. * ,-------------.
  34. * | Q |CALDEL|
  35. * |------+------|
  36. * | A |TSKMGR|
  37. * |------+------|
  38. * | Z | X |
  39. * |------+------|
  40. * | | C |
  41. * `-------------'
  42. */
  43. [_FUNC] = LAYOUT(
  44. KC_Q, CALTDEL,
  45. KC_A, TSKMGR,
  46. KC_Z, KC_X,
  47. _______, KC_C
  48. )
  49. };