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.

130 lines
5.1 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. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "drashna.h"
  18. #if defined(KEYBOARD_handwired_tractyl_manuform_5x6_right)
  19. # define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
  20. #else
  21. # define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
  22. #endif
  23. enum userspace_custom_keycodes {
  24. VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
  25. KC_QWERTY, // Sets default layer to QWERTY
  26. FIRST_DEFAULT_LAYER_KEYCODE = KC_QWERTY, // Sets default layer to QWERTY
  27. KC_COLEMAK_DH, // Sets default layer to COLEMAK
  28. KC_COLEMAK, // Sets default layer to COLEMAK
  29. KC_DVORAK, // Sets default layer to DVORAK
  30. LAST_DEFAULT_LAYER_KEYCODE = KC_DVORAK, // Sets default layer to WORKMAN
  31. KC_DIABLO_CLEAR, // Clears all Diablo Timers
  32. KC_MAKE, // Run keyboard's customized make command
  33. KC_RGB_T, // Toggles RGB Layer Indication mode
  34. RGB_IDL, // RGB Idling animations
  35. KC_SECRET_1, // test1
  36. KC_SECRET_2, // test2
  37. KC_SECRET_3, // test3
  38. KC_SECRET_4, // test4
  39. KC_SECRET_5, // test5
  40. KC_CCCV, // Hold to copy, tap to paste
  41. KC_NUKE, // NUCLEAR LAUNCH DETECTED!!!
  42. UC_FLIP, // (ಠ痊ಠ)┻━┻
  43. UC_TABL, // ┬─┬ノ( º _ ºノ)
  44. UC_SHRG, // ¯\_(ツ)_/¯
  45. UC_DISA, // ಠ_ಠ
  46. KEYLOCK, // Locks keyboard by unmounting driver
  47. NEW_SAFE_RANGE // use "NEWPLACEHOLDER for keymap specific codes
  48. };
  49. bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
  50. bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
  51. void post_process_record_keymap(uint16_t keycode, keyrecord_t *record);
  52. #define LOWER MO(_LOWER)
  53. #define RAISE MO(_RAISE)
  54. #define ADJUST MO(_ADJUST)
  55. #define TG_MODS OS_TOGG
  56. #define TG_GAME TG(_GAMEPAD)
  57. #define TG_DBLO TG(_DIABLO)
  58. #define OS_LWR OSL(_LOWER)
  59. #define OS_RSE OSL(_RAISE)
  60. #define KC_SEC1 KC_SECRET_1
  61. #define KC_SEC2 KC_SECRET_2
  62. #define KC_SEC3 KC_SECRET_3
  63. #define KC_SEC4 KC_SECRET_4
  64. #define KC_SEC5 KC_SECRET_5
  65. #define QWERTY KC_QWERTY
  66. #define DVORAK KC_DVORAK
  67. #define COLEMAK KC_COLEMAK
  68. #define COLEMAKDH KC_COLEMAK_DH
  69. #define DEFLYR1 FIRST_DEFAULT_LAYER_KEYCODE
  70. #define DEFLYR2 (FIRST_DEFAULT_LAYER_KEYCODE + 1)
  71. #define DEFLYR3 (FIRST_DEFAULT_LAYER_KEYCODE + 2)
  72. #define DEFLYR4 (FIRST_DEFAULT_LAYER_KEYCODE + 3)
  73. #if LAST_DEFAULT_LAYER_KEYCODE > (FIRST_DEFAULT_LAYER_KEYCODE + 3)
  74. # define DEFLYR5 (FIRST_DEFAULT_LAYER_KEYCODE + 4)
  75. # define DEFLYR6 (FIRST_DEFAULT_LAYER_KEYCODE + 5)
  76. # define DEFLYR7 (FIRST_DEFAULT_LAYER_KEYCODE + 6)
  77. # define DEFLYR8 (FIRST_DEFAULT_LAYER_KEYCODE + 7)
  78. # if LAST_DEFAULT_LAYER_KEYCODE > (FIRST_DEFAULT_LAYER_KEYCODE + 7)
  79. # define DEFLYR9 (FIRST_DEFAULT_LAYER_KEYCODE + 8)
  80. # define DEFLYR10 (FIRST_DEFAULT_LAYER_KEYCODE + 9)
  81. # define DEFLYR11 (FIRST_DEFAULT_LAYER_KEYCODE + 10)
  82. # define DEFLYR12 (FIRST_DEFAULT_LAYER_KEYCODE + 11)
  83. # endif
  84. #endif
  85. #define KC_RESET RESET
  86. #define KC_RST KC_RESET
  87. #ifdef SWAP_HANDS_ENABLE
  88. # define KC_C1R3 SH_T(KC_TAB)
  89. #elif defined(DRASHNA_LP)
  90. # define KC_C1R3 TG(_GAMEPAD)
  91. #else // SWAP_HANDS_ENABLE
  92. # define KC_C1R3 KC_TAB
  93. #endif // SWAP_HANDS_ENABLE
  94. #define BK_LWER LT(_LOWER, KC_BSPC)
  95. #define SP_LWER LT(_LOWER, KC_SPC)
  96. #define DL_RAIS LT(_RAISE, KC_DEL)
  97. #define ET_RAIS LT(_RAISE, KC_ENTER)
  98. /* OSM keycodes, to keep things clean and easy to change */
  99. #define KC_MLSF OSM(MOD_LSFT)
  100. #define KC_MRSF OSM(MOD_RSFT)
  101. #define OS_LGUI OSM(MOD_LGUI)
  102. #define OS_RGUI OSM(MOD_RGUI)
  103. #define OS_LSFT OSM(MOD_LSFT)
  104. #define OS_RSFT OSM(MOD_RSFT)
  105. #define OS_LCTL OSM(MOD_LCTL)
  106. #define OS_RCTL OSM(MOD_RCTL)
  107. #define OS_LALT OSM(MOD_LALT)
  108. #define OS_RALT OSM(MOD_RALT)
  109. #define OS_MEH OSM(MOD_MEH)
  110. #define OS_HYPR OSM(MOD_HYPR)
  111. #define ALT_APP ALT_T(KC_APP)
  112. #define MG_NKRO MAGIC_TOGGLE_NKRO
  113. #define UC_IRNY UC(0x2E2E)
  114. #define UC_CLUE UC(0x203D)