aboutsummaryrefslogtreecommitdiff
path: root/users/jonavin/jonavin.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/jonavin/jonavin.h')
-rw-r--r--users/jonavin/jonavin.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/users/jonavin/jonavin.h b/users/jonavin/jonavin.h
new file mode 100644
index 000000000..894feddfd
--- /dev/null
+++ b/users/jonavin/jonavin.h
@@ -0,0 +1,82 @@
1
2/* Copyright 2021 Jonavin Eng @Jonavin
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20// DEFINE MACROS
21#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
22
23
24// LAYERS
25enum custom_user_layers {
26 _BASE,
27 _FN1,
28 _LOWER,
29 _RAISE,
30};
31
32// KEYCODES
33enum custom_user_keycodes {
34 KC_00 = SAFE_RANGE,
35 ENCFUNC,
36 KC_WINLCK, //Toggles Win key on and off
37 RGB_TOI, // Timeout idle time up
38 RGB_TOD, // Timeout idle time down
39};
40
41#define KC_CAD LALT(LCTL(KC_DEL))
42#define KC_AF4 LALT(KC_F4)
43#define KC_TASK LCTL(LSFT(KC_ESC))
44
45
46#ifdef TD_LSFT_CAPSLOCK_ENABLE
47 // Tap Dance Definitions
48 enum custom_tapdance {
49 TD_LSFT_CAPSLOCK,
50 TD_LSFT_CAPS_WIN
51 };
52
53 #define KC_LSFTCAPS TD(TD_LSFT_CAPSLOCK)
54 #define KC_LSFTCAPSWIN TD(TD_LSFT_CAPS_WIN)
55#else // regular Shift
56 #define KC_LSFTCAPS KC_LSFT
57#endif // TD_LSFT_CAPSLOCK_ENABLE
58
59
60
61#ifdef RGB_MATRIX_ENABLE
62//RGB custom colours
63 #define RGB_GODSPEED 0x00, 0xE4, 0xFF // colour for matching keycaps
64 #define RGB_NAUTILUS 0x00, 0xA4, 0xA9 // Nautilus Font colours
65#endif
66
67
68// IDLE TIMEOUTS
69#ifdef IDLE_TIMEOUT_ENABLE
70 #define TIMEOUT_THRESHOLD_DEFAULT 5 // default timeout minutes
71 #define TIMEOUT_THRESHOLD_MAX 140 // upper limits (2 hours and 10 minutes -- no rgb indicators above this value)
72
73 //prototype functions
74 uint16_t get_timeout_threshold(void);
75 void timeout_reset_timer(void);
76 void timeout_update_threshold(bool increase);
77 void timeout_tick_timer(void);
78#endif //IDLE_TIMEOUT_ENABLE
79
80
81// OTHER FUNCTION PROTOTYPE
82void activate_numlock(bool turn_on);