keymap.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Last updated: 3 Aug 2019
  3. DZ60 Layout by ottodokto
  4. This layout is a modification of the 60 tsangan hhkb layout,
  5. with an additional layer to update the arrow keys and
  6. */
  7. #include QMK_KEYBOARD_H
  8. /*---Layers-------------------------------------------- */
  9. #define _base 0 // default, tsangan layout with split backspace
  10. #define _func 1 // media controls and reset buttons
  11. /*---defines-------------------------------------------- */
  12. #define KC_CTOG LT(_func, KC_CAPS)
  13. #define KC_TTAP TT(_func)
  14. #define RGB_STA RGB_M_P // rgb static
  15. #define RGB_BRE RGB_M_B // rgb breathe
  16. #define RGB_RAI RGB_M_R // rgb rainbow
  17. #define RGB_SWI RGB_M_SW // rgb swirl
  18. #define RGB_SNA RGB_M_SN // rgb snake
  19. #define RGB_KNI RGB_M_K // rgb knight
  20. #define RGB_GRA RGB_M_G // rgb gradient
  21. /*---Layout-------------------------------------------- */
  22. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  23. [_base] = LAYOUT_60_tsangan_hhkb(
  24. KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, \
  25. KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, \
  26. KC_CTOG, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
  27. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TTAP, \
  28. KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
  29. ),
  30. [_func] = LAYOUT_60_tsangan_hhkb(
  31. RGB_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, RESET, \
  32. _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, RGB_SPI, RGB_HUD, RGB_VAI, RGB_HUI, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, \
  33. _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, _______, RGB_SPD, RGB_SAD, RGB_VAD, RGB_SAI, KC_BRID, KC_BRIU, _______, \
  34. _______, RGB_STA, RGB_BRE, RGB_RAI, RGB_SWI, RGB_SNA, RGB_KNI, RGB_GRA, VLK_TOG, _______, _______, _______, _______, \
  35. _______, _______, _______, _______, _______, _______, _______
  36. )
  37. };