keymap.c 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 _QWERTY 0
  7. #define _SYMB 1
  8. // Shortcut to make keymap more readable
  9. #define SYM_L MO(_SYMB)
  10. #define KC_ALEN LALT_T(KC_ENT)
  11. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  12. [_QWERTY] = LAYOUT(
  13. //┌────────┬────────┬────────┬────────┬────────┬────────┐
  14. KC_ESC ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 ,
  15. //└────────┼────────┼────────┼────────┼────────┼────────┤
  16. KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,
  17. //┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  18. KC_LGUI ,KC_ALEN ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,
  19. //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  20. KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,
  21. //├────────┼────────┘ └────────┴────────┼────────┼────────┐
  22. KC_LCTL ,SYM_L ,KC_SPC
  23. //└────────┘ └────────┴────────┘
  24. ),
  25. [_SYMB] = LAYOUT(
  26. //┌────────┬────────┬────────┬────────┬────────┬────────┐
  27. _______ ,KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,
  28. //└────────┼────────┼────────┼────────┼────────┼────────┤
  29. KC_GRV ,KC_UP ,KC_PIPE ,KC_LCBR ,KC_RCBR ,
  30. //┌────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  31. _______ ,_______ ,KC_LEFT ,KC_DOWN ,KC_RIGHT,KC_LBRC ,KC_RBRC ,
  32. //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐
  33. _______ ,KC_BSPC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,
  34. //├────────┼────────┘ └────────┴────────┼────────┼────────┐
  35. _______ ,_______ ,_______
  36. //└────────┘ └────────┴────────┘
  37. )
  38. };