mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-28 12:09:16 +06:00
b5ebdf1b3a
Add Eco keymap, factor Crkbd keymap to community layout, other minor tweaks * Remove outdated Crkbd Ctrl key positioning info * Add Left Alt key to Lily58 keymap * Lily58 no longer overrides default TAPPING_TERM * Refactor Crkbd keymap to use new community layout * Fix underglow animations for Crkbd w/ Split Common * Add initial Eco keymap * Update outdated reference to Crkbd layout * Add keymap links to userspace readme * Add copyright notices to files changed in this PR
80 lines
2.6 KiB
C
80 lines
2.6 KiB
C
/* Copyright 2020 Jonathan Rascher
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* Wait between tap_code register and unregister to fix flaky media keys. */
|
|
#undef TAP_CODE_DELAY
|
|
|
|
#define TAP_CODE_DELAY 20
|
|
|
|
/* Treat mod-tap keys as holds even if the mod-tap key and the key being
|
|
* modified are both released within TAPPING_TERM. This assumes the mod-tap key
|
|
* isn't usually pressed in quick succession with other tapped keys, which is
|
|
* good when the tap keycode is something like KC_ESC rather than a letter.
|
|
*/
|
|
#define PERMISSIVE_HOLD
|
|
|
|
/* Turn off key repeat support of the tap keycode for tap-hold keys, enabling
|
|
* holds to work correctly in quick succession after taps.
|
|
*/
|
|
#define TAPPING_FORCE_HOLD
|
|
|
|
#if defined(RGB_MATRIX_ENABLE)
|
|
/* Turn off per-key RGB when the host goes to sleep. */
|
|
# define RGB_DISABLE_WHEN_USB_SUSPENDED true
|
|
|
|
/* Keep per-key RGB increments consistent across keyboards. */
|
|
# undef RGB_MATRIX_HUE_STEP
|
|
# undef RGB_MATRIX_SAT_STEP
|
|
# undef RGB_MATRIX_VAL_STEP
|
|
# undef RGB_MATRIX_SPD_STEP
|
|
|
|
# define RGB_MATRIX_HUE_STEP 8
|
|
# define RGB_MATRIX_SAT_STEP 17
|
|
# define RGB_MATRIX_VAL_STEP 17
|
|
# define RGB_MATRIX_SPD_STEP 17
|
|
|
|
/* Turn on additional RGB animations. */
|
|
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
|
# define RGB_MATRIX_KEYPRESSES
|
|
#endif
|
|
|
|
#if defined(RGBLIGHT_ENABLE)
|
|
/* Turn off RGB underglow when the host goes to sleep. */
|
|
# define RGBLIGHT_SLEEP
|
|
|
|
/* Keep RGB underglow level increments consistent across keyboards. */
|
|
# undef RGBLIGHT_HUE_STEP
|
|
# undef RGBLIGHT_SAT_STEP
|
|
# undef RGBLIGHT_VAL_STEP
|
|
|
|
# define RGBLIGHT_HUE_STEP 8
|
|
# define RGBLIGHT_SAT_STEP 17
|
|
# define RGBLIGHT_VAL_STEP 17
|
|
|
|
/* Turn on additional RGB animations. */
|
|
# define RGBLIGHT_ANIMATIONS
|
|
#endif
|
|
|
|
#if defined(BACKLIGHT_ENABLE)
|
|
/* Enable backlight breathing across the board. */
|
|
# define BACKLIGHT_BREATHING
|
|
|
|
/* Keep backlight level increments consistent across keyboards. */
|
|
# undef BACKLIGHT_LEVELS
|
|
|
|
# define BACKLIGHT_LEVELS 7
|
|
#endif
|