config.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Copyright 2020 Tushar Khan
  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. #define ENCODER_RESOLUTION 4 // dependent on rotary encoder
  18. #define TAP_CODE_DELAY 10 // delay between key press and release on `tapcode(kc)`
  19. #define TAPPING_TERM 200 // mod tap tap-window
  20. // oneshot keys --
  21. #define ONESHOT_TAP_TOGGLE 25 // taps to toggle a one-shot layer/key persistence
  22. #define ONESHOT_TIMEOUT 500 // one-shot layer/key timeout
  23. // dynamic macros --
  24. // you can store HALF of this number of keypresses in both macros together
  25. #define DYNAMIC_MACRO_SIZE 256
  26. // mouse keys --
  27. #define MK_3_SPEED
  28. // mouse speeds
  29. // cursor offset per movement
  30. #define MK_C_OFFSET_1 4
  31. #define MK_C_OFFSET_2 16
  32. // time between cursor movements (ms)
  33. #define MK_C_INTERVAL_1 16 // 16 ms = 60 Hz refresh rate
  34. #define MK_C_INTERVAL_2 16
  35. // scroll speeds
  36. // scroll steps per scroll action
  37. #define MK_W_OFFSET_1 1
  38. #define MK_W_OFFSET_2 4
  39. // time between scroll steps (ms)
  40. #define MK_W_INTERVAL_1 16
  41. #define MK_W_INTERVAL_2 16
  42. // audio --
  43. #define AUDIO_CLICKY
  44. #define AUDIO_CLICKY_FREQ_RANDOMNESS 1