forked from filterpaper/qmk_userspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
119 lines (109 loc) · 3.32 KB
/
config.h
File metadata and controls
119 lines (109 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Copyright 2021 @filterpaper
// SPDX-License-Identifier: GPL-2.0+
#pragma once
// Key and layout wrapper macros
#include "layout.h"
// Common QMK settings
#define TAPPING_TERM 220
#define TAPPING_FORCE_HOLD
#define TAPPING_FORCE_HOLD_PER_KEY
#define PERMISSIVE_HOLD
#define PERMISSIVE_HOLD_PER_KEY
#define IGNORE_MOD_TAP_INTERRUPT
#define TAPPING_TOGGLE 1
#define TAP_HOLD_CAPS_DELAY 20
#define GRAVE_ESC_SHIFT_OVERRIDE
#define USB_SUSPEND_WAKEUP_DELAY 200
// Increase polling
#define QMK_KEYS_PER_SCAN 4
#define USB_POLLING_INTERVAL_MS 1
// Space saving options
#define LAYER_STATE_8BIT
#define NO_ACTION_ONESHOT
#ifdef SPLIT_KEYBOARD
# define EE_HANDS
# ifdef KEYBOARD_crkbd_rev1
# define BOOTMAGIC_LITE_ROW 0
# define BOOTMAGIC_LITE_COLUMN 0
# define BOOTMAGIC_LITE_ROW_RIGHT 4
# define BOOTMAGIC_LITE_COLUMN_RIGHT 0
# endif
# if defined(OLED_ENABLE) || defined(RGB_MATRIX_ENABLE)
# define SPLIT_MODS_ENABLE
# define SPLIT_LED_STATE_ENABLE
# define SPLIT_LAYER_STATE_ENABLE
# endif
#endif
#ifdef MOUSEKEY_ENABLE
//# define MK_KINETIC_SPEED
# ifdef MK_KINETIC_SPEED
# define MOUSEKEY_DELAY 0
# define MOUSEKEY_INTERVAL 16
# define MOUSEKEY_MOVE_DELTA 4
# define MOUSEKEY_INITIAL_SPEED 50 // Initial speed of the cursor in pixel per second
# define MOUSEKEY_BASE_SPEED 1000 // Maximum cursor speed at which acceleration stops
# define MOUSEKEY_DECELERATED_SPEED 400
# define MOUSEKEY_ACCELERATED_SPEED 2000
# else
# define MOUSEKEY_DELAY 0 // Delay between pressing a key and cursor movement
# define MOUSEKEY_INTERVAL 16 // Time between cursor movements in milliseconds
# define MOUSEKEY_MOVE_DELTA 9 // Step size for acceleration
# define MOUSEKEY_MAX_SPEED 12
# define MOUSEKEY_TIME_TO_MAX 70
# endif
# define MOUSEKEY_WHEEL_DELAY 16
# define MOUSEKEY_WHEEL_INTERVAL 30
# define MOUSEKEY_WHEEL_MAX_SPEED 10
# define MOUSEKEY_WHEEL_TIME_TO_MAX 95
// Kinetic Mode
# define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 500
# define MOUSEKEY_WHEEL_BASE_MOVEMENTS 1000
# define MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS 400
# define MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS 3000
#endif
#ifdef RGB_MATRIX_ENABLE
# ifndef SPLIT_KEYBOARD
# define RGB_DISABLE_TIMEOUT 180000
# endif
# undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
# undef RGB_DISABLE_WHEN_USB_SUSPENDED
# define RGB_DISABLE_WHEN_USB_SUSPENDED
# define RGB_MATRIX_STARTUP_HUE 208
# define RGB_MATRIX_STARTUP_SAT 135
# define RGB_MATRIX_KEYPRESSES
# ifdef RGB_MATRIX_CUSTOM_USER
# define ENABLE_RGB_MATRIX_CANDY_TAP
# define ENABLE_RGB_MATRIX_CANDY_RAIN
# else
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
# endif
#endif
#ifdef RGBLIGHT_ENABLE
# ifdef KEYBOARD_crkbd_rev1
# undef RGBLED_NUM
# define RGBLED_NUM 54
# undef RGBLED_SPLIT
# define RGBLED_SPLIT { 27, 27 }
# define RGBLIGHT_SPLIT
# endif
# define RGBLIGHT_LIMIT_VAL 150
# define RGBLIGHT_SLEEP 180000
#endif
#ifdef OLED_ENABLE
# define OLED_TIMEOUT 10000
# define OLED_DISABLE_TIMEOUT // Prevent matrix_changed triggering oled_on()
# define OLED_UPDATE_INTERVAL 50
# define OLED_BRIGHTNESS 180
# define OLED_FONT_H "users/filterpaper/oledfont.c"
#endif
#ifdef COMBO_ENABLE
# define COMBO_TERM 20
# define COMBO_ONLY_FROM_LAYER 0
#endif
#ifdef AUTO_SHIFT_ENABLE
# define NO_AUTO_SHIFT_ALPHA
# define NO_AUTO_SHIFT_NUMERIC
# define AUTO_SHIFT_TIMEOUT 150
#endif