keymap.c 850 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include QMK_KEYBOARD_H
  2. extern keymap_config_t keymap_config;
  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 pad_layers {
  8. _L1,
  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. /* Layer 1
  16. * ,------.
  17. * | 1 |
  18. * |------|
  19. * | 2 |
  20. * |------|
  21. * | FN |
  22. * `------'
  23. */
  24. [_L1] = LAYOUT( \
  25. KC_1, \
  26. KC_2, \
  27. MO(_FUNC) \
  28. ),
  29. [_FUNC] = LAYOUT( \
  30. CALTDEL, \
  31. TSKMGR, \
  32. _______ \
  33. )
  34. };
  35. void matrix_init_user(void) {
  36. }