You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
7.3 KiB

[Keymap] Drashna's Feature madness (#6128) * Fix my Tap Dance issues after I broke them * Cleanup and organization of userspace documentation As well as some additional cleanup of functions due to review of documentation. * Enable Tapdance on Glow and remove more animations * Revert to Eager PR debouncing * Add better check for startup animation * Move where RGB Matrix defines are listed * Limit RGB Matrix max val * Update keyboard for Iris Rev 3 conflicts * Enable encoder support on planck ez * Remove is_master check from corne\'s OLED code * Overhaul OLED screens for my Corne * One last removal * Show RGB valu On both sides * Updates for OLED display info * Fix compile issues for rgb config * Disabled Space Cadet for all drashna keymaps * Fix OLED Screen configs * Minor OLED Tweaks * Revert some Iris changes * Fix song include * Handle MAKE macro for the Corne boards better * Add super hacky-hack for eeconfig initialization * Add audio support for Fractal since Elite Cs support it * Add defines for keycode steps * Add White layout * Update Corne RGB info * Add fun effects to layer indication for RGB Matrix enabled boards * Use proper define for product name detection * Update formatting * Use custom timeout mechanism for OLED timeout * Fix up OLED screen HSV code for new HSV structure * Better handle turning off RGB Matrix when sleeping * Disable MultiSplash Animation * Change Iris back to using serial * Why was RGB disabled?!?!?! * Limit val in rgb_matrix_layer_helper function * Remove EECONFIG setting for RGB matrix
4 years ago
[Keymap] Drashna's Feature madness (#6128) * Fix my Tap Dance issues after I broke them * Cleanup and organization of userspace documentation As well as some additional cleanup of functions due to review of documentation. * Enable Tapdance on Glow and remove more animations * Revert to Eager PR debouncing * Add better check for startup animation * Move where RGB Matrix defines are listed * Limit RGB Matrix max val * Update keyboard for Iris Rev 3 conflicts * Enable encoder support on planck ez * Remove is_master check from corne\'s OLED code * Overhaul OLED screens for my Corne * One last removal * Show RGB valu On both sides * Updates for OLED display info * Fix compile issues for rgb config * Disabled Space Cadet for all drashna keymaps * Fix OLED Screen configs * Minor OLED Tweaks * Revert some Iris changes * Fix song include * Handle MAKE macro for the Corne boards better * Add super hacky-hack for eeconfig initialization * Add audio support for Fractal since Elite Cs support it * Add defines for keycode steps * Add White layout * Update Corne RGB info * Add fun effects to layer indication for RGB Matrix enabled boards * Use proper define for product name detection * Update formatting * Use custom timeout mechanism for OLED timeout * Fix up OLED screen HSV code for new HSV structure * Better handle turning off RGB Matrix when sleeping * Disable MultiSplash Animation * Change Iris back to using serial * Why was RGB disabled?!?!?! * Limit val in rgb_matrix_layer_helper function * Remove EECONFIG setting for RGB matrix
4 years ago
  1. #include "drashna.h"
  2. /*
  3. * The `LAYOUT_gergo_base` macro is a template to allow the use of identical
  4. * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
  5. * that there is no need to set them up for each layout, and modify all of
  6. * them if I want to change them. This helps to keep consistency and ease
  7. * of use. K## is a placeholder to pass through the individual keycodes
  8. */
  9. // clang-format off
  10. #define LAYOUT_gergo_base( \
  11. K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
  12. K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
  13. K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
  14. ) \
  15. LAYOUT_gergo_wrapper( \
  16. KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_PIPE, \
  17. LALT_T(KC_TAB), K11, K12, K13, K14, K15, _______, _______, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
  18. OS_LSFT, CTL_T(K21), K22, K23, K24, K25, _______, _______, _______, _______, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
  19. KC_GRV, KC_SPC, BK_LWER, OS_LALT, OS_RGUI, DL_RAIS, KC_ENT, _______ \
  20. )
  21. #define LAYOUT_gergo_base_wrapper(...) LAYOUT_gergo_base(__VA_ARGS__)
  22. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  23. [_QWERTY] = LAYOUT_gergo_base_wrapper(
  24. _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
  25. _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
  26. _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
  27. ),
  28. [_COLEMAK] = LAYOUT_gergo_base_wrapper(
  29. _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
  30. _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
  31. _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
  32. ),
  33. [_DVORAK] = LAYOUT_gergo_base_wrapper(
  34. _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
  35. _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
  36. _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
  37. ),
  38. [_WORKMAN] = LAYOUT_gergo_base_wrapper(
  39. _________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
  40. _________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
  41. _________________WORKMAN_L3________________, _________________WORKMAN_R3________________
  42. ),
  43. [_NORMAN] = LAYOUT_gergo_base_wrapper(
  44. _________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
  45. _________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
  46. _________________NORMAN_L3_________________, _________________NORMAN_R3_________________
  47. ),
  48. [_MALTRON] = LAYOUT_gergo_base_wrapper(
  49. _________________MALTRON_L1________________, _________________MALTRON_R1________________,
  50. _________________MALTRON_L2________________, _________________MALTRON_R2________________,
  51. _________________MALTRON_L3________________, _________________MALTRON_R3________________
  52. ),
  53. [_EUCALYN] = LAYOUT_gergo_base_wrapper(
  54. _________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
  55. _________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
  56. _________________EUCALYN_L3________________, _________________EUCALYN_R3________________
  57. ),
  58. [_CARPLAX] = LAYOUT_gergo_base_wrapper(
  59. _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
  60. _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
  61. _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
  62. ),
  63. [_MODS] = LAYOUT_gergo_wrapper(
  64. _______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
  65. _______, ___________________BLANK___________________, _______, _______, ___________________BLANK___________________, _______,
  66. KC_LSFT, ___________________BLANK___________________, _______, _______, _______, _______, ___________________BLANK___________________, KC_RSFT,
  67. _______, _______, _______, _______, _______, _______, _______, _______
  68. ),
  69. [_LOWER] = LAYOUT_gergo_wrapper(
  70. KC_F12, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_F11,
  71. _______, _________________LOWER_L2__________________, _______, _______, _________________LOWER_R2__________________, KC_PIPE,
  72. _______, _________________LOWER_L3__________________, _______, _______, _______, _______, _________________LOWER_R3__________________, _______,
  73. _______, _______, _______, _______, _______, _______, _______, _______
  74. ),
  75. [_RAISE] = LAYOUT_gergo_wrapper(
  76. _______, _________________RAISE_L1__________________, _________________RAISE_R1__________________, _______,
  77. _______, _________________RAISE_L2__________________, _______, _______, _________________RAISE_R2__________________, KC_BSLS,
  78. _______, _________________RAISE_L3__________________, _______, _______, _______, _______, _________________RAISE_R3__________________, _______,
  79. _______, _______, _______, _______, _______, _______, _______, _______
  80. ),
  81. [_ADJUST] = LAYOUT_gergo_wrapper(
  82. KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
  83. VRSN, _________________ADJUST_L2_________________, _______, KC_NUKE, _________________ADJUST_R2_________________, EEP_RST,
  84. _______, _________________ADJUST_L3_________________, _______, _______, _______, _______, _________________ADJUST_R3_________________, TG_MODS,
  85. _______, _______, _______, _______, _______, _______, _______, _______
  86. ),
  87. };
  88. /* Keymap template
  89. [SYMB] = LAYOUT_gergo_wrapper(
  90. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  91. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  92. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  93. _______, _______, _______, _______, _______, _______, _______, _______
  94. ),
  95. */
  96. // clang-format on