keymap.c 812 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. enum pad_layers {
  7. _L1,
  8. _FUNC
  9. };
  10. // Defines for task manager and such
  11. #define CALTDEL LCTL(LALT(KC_DEL))
  12. #define TSKMGR LCTL(LSFT(KC_ESC))
  13. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  14. /* Layer 1
  15. * ,------.
  16. * | 1 |
  17. * |------|
  18. * | 2 |
  19. * |------|
  20. * | FN |
  21. * `------'
  22. */
  23. [_L1] = LAYOUT( \
  24. KC_1, \
  25. KC_2, \
  26. MO(_FUNC) \
  27. ),
  28. [_FUNC] = LAYOUT( \
  29. CALTDEL, \
  30. TSKMGR, \
  31. _______ \
  32. )
  33. };
  34. void matrix_init_user(void) {
  35. }