config.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. QMK Firmware Massdrop CTRL M-AS Keymap
  3. Copyright (C) 2020 matthewrobo
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #pragma once
  16. #define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT)
  17. #define MODS_CTRL (get_mods() & MOD_MASK_CTRL)
  18. #define MODS_ALT (get_mods() & MOD_MASK_ALT)
  19. // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) // Key combination that allows the use of magic commands (useful for debugging)
  20. // #define NO_DEBUG // Disable debugging
  21. // #define NO_PRINT // Disable printing/debugging using hid_listen
  22. // #define NO_ACTION_LAYER // Disable layers
  23. // #define NO_ACTION_TAPPING // Disable tap dance and other tapping features
  24. // #define NO_ACTION_ONESHOT // Disable one-shot modifiers
  25. // #define NO_ACTION_MACRO // Disable old style macro handling: MACRO() & action_get_macro
  26. // #define TERMINAL_HELP
  27. // #define MOUSEKEY_INTERVAL 20
  28. // #define MOUSEKEY_DELAY 0
  29. // #define MOUSEKEY_TIME_TO_MAX 60
  30. // #define MOUSEKEY_MAX_SPEED 10
  31. // #define MOUSEKEY_WHEEL_DELAY 0
  32. #define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
  33. // #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
  34. // #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
  35. // #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state
  36. #define TAPPING_TERM 200 // How long before a tap becomes a hold, if set above 500, a key tapped during the tapping term will turn it into a hold too
  37. #define PERMISSIVE_HOLD
  38. // #define TAPPING_TERM_PER_KEY // Enables handling for per key TAPPING_TERM settings
  39. // #define RETRO_TAPPING // Tap anyway, even after TAPPING_TERM, if there was no other key interruption between press and release
  40. // #define TAPPING_TOGGLE 2 // How many taps before triggering the toggle
  41. // #define PERMISSIVE_HOLD // Makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the TAPPING_TERM. See Permissive Hold for details
  42. // #define IGNORE_MOD_TAP_INTERRUPT // Makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the TAPPING_TERM for both keys. See Mod tap interrupt for details
  43. // #define TAPPING_FORCE_HOLD // Makes it possible to use a dual role key as modifier shortly after having been tapped. See Hold after tap. Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle)
  44. // #define LEADER_TIMEOUT 300 // How long before the leader key times out. If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the LEADER_PER_KEY_TIMING option, which resets the timeout after each key is tapped.
  45. // #define LEADER_PER_KEY_TIMING // Sets the timer for leader key chords to run on each key press rather than overall
  46. // #define LEADER_KEY_STRICT_KEY_PROCESSING // Disables keycode filtering for Mod-Tap and Layer-Tap keycodes. Eg, if you enable this, you would need to specify MT(MOD_CTL, KC_A) if you want to use KC_A.
  47. // #define ONESHOT_TIMEOUT 300 // How long before oneshot times out
  48. // #define ONESHOT_TAP_TOGGLE 2 // How many taps before oneshot toggle is triggered
  49. // #define COMBO_COUNT 2 // Set this to the number of combos that you're using in the Combo feature.
  50. // #define COMBO_TERM 200 // How long for the Combo keys to be detected. Defaults to TAPPING_TERM if not defined.
  51. // #define TAP_CODE_DELAY 100 // Sets the delay between register_code and unregister_code, if you're having issues with it registering properly (common on VUSB boards). The value is in milliseconds.
  52. // #define TAP_HOLD_CAPS_DELAY 80 // Sets the delay for Tap Hold keys (LT, MT) when using KC_CAPS_LOCK keycode, as this has some special handling on MacOS. The value is in milliseconds, and defaults to 80 ms if not defined. For macOS, you may want to set this to 200 or higher.
  53. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  54. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  55. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  56. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_ALPHAS_MODS // Sets the default mode, if none has been set
  57. // #define RGBLIGHT_HUE_STEP 12 // Units to step when in/decreasing hue
  58. // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation
  59. // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
  60. // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  61. // #define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  62. // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  63. // #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7
  64. // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255
  65. // #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds
  66. // #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 2 // The number of LEDs to group the red/green colors by for the "Christmas" animation
  67. // #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM RGBLED_NUM // The number of LEDs to have the "Knight" animation travel
  68. // #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // The number of LEDs to light up for the "Knight" animation
  69. // #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0 // The number of LEDs to start the "Knight" animation from the start of the strip by
  70. // #define RGBLIGHT_RAINBOW_SWIRL_RANGE 255 // Range adjustment for the rainbow swirl effect to get different swirls
  71. // #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // The number of LEDs to light up for the "Snake" animation
  72. // This list in in the correct mode order. Next mode is the following line, previous mode is previous line. Loops around.
  73. // #undef ENABLE_RGB_MATRIX_SOLID_COLOR // Static single hue, no speed support
  74. // #undef ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
  75. // #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
  76. #undef ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
  77. #undef ENABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
  78. #undef ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
  79. #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
  80. #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
  81. #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
  82. #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
  83. #undef ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
  84. #undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
  85. #undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
  86. #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
  87. #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
  88. #undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right
  89. #undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
  90. // #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
  91. #undef ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
  92. #undef ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
  93. #undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
  94. #undef ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
  95. #undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
  96. // =================================================== Requires RGB_MATRIX_FRAMEBUFFER_EFFECTS =============================================================
  97. // #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
  98. #undef ENABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
  99. // =================================================== RGB_MATRIX_KEYPRESSES OR RGB_MATRIX_KEYRELEASES =====================================================
  100. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
  101. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
  102. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
  103. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
  104. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
  105. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
  106. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
  107. #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
  108. // #undef ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
  109. // #undef ENABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
  110. // #undef ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
  111. // #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out