config.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
  3. *
  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 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #ifdef VIA_ENABLE
  19. /* VIA configuration. */
  20. # define DYNAMIC_KEYMAP_LAYER_COUNT 6
  21. #endif // VIA_ENABLE
  22. /**
  23. * \brief Prevent normal rollover on alphas from accidentally triggering mods.
  24. *
  25. * Ignores key presses that interrupt a mod-tap. Must-have for Home Row mod.
  26. *
  27. * Without `IGNORE_MOD_TAP_INTERRUPT`, within `TAPPING_TERM`:
  28. * Mod(a)🠗 e🠗 Mod(a)🠕 e🠕 ➞ Mod+e
  29. * With `IGNORE_MOD_TAP_INTERRUPT`, within `TAPPING_TERM`:
  30. * Mod(a)🠗 e🠗 Mod(a)🠕 e🠕 ➞ ae
  31. */
  32. #define IGNORE_MOD_TAP_INTERRUPT
  33. /* Charybdis-specific features. */
  34. #ifdef POINTING_DEVICE_ENABLE
  35. // Automatically enable the pointer layer when moving the trackball. See also:
  36. // - `DILEMMA_AUTO_POINTER_LAYER_TRIGGER_TIMEOUT_MS`
  37. // - `DILEMMA_AUTO_POINTER_LAYER_TRIGGER_THRESHOLD`
  38. // #define DILEMMA_AUTO_POINTER_LAYER_TRIGGER_ENABLE
  39. #endif // POINTING_DEVICE_ENABLE