diff options
Diffstat (limited to 'users/ericgebhart/ericgebhart.h')
-rwxr-xr-x[-rw-r--r--] | users/ericgebhart/ericgebhart.h | 80 |
1 files changed, 60 insertions, 20 deletions
diff --git a/users/ericgebhart/ericgebhart.h b/users/ericgebhart/ericgebhart.h index ad66a636e..92f8f22d2 100644..100755 --- a/users/ericgebhart/ericgebhart.h +++ b/users/ericgebhart/ericgebhart.h | |||
@@ -1,32 +1,72 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | /* | ||
3 | Copyright 2018 Eric Gebhart <e.a.gebhart@gmail.com> | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
2 | 18 | ||
3 | #ifndef ericgebhart | 19 | #ifndef ericgebhart |
4 | #define ericgebhart | 20 | #define ericgebhart |
5 | 21 | ||
6 | #include QMK_KEYBOARD_H | 22 | #include QMK_KEYBOARD_H |
7 | #include "base_layers.h" | 23 | #include "core_keysets.h" |
24 | #include "layouts.h" | ||
25 | #include "layers.h" | ||
26 | #if defined(OLED_ENABLE) | ||
27 | # include "oled_stuff.h" | ||
28 | #endif | ||
8 | 29 | ||
9 | 30 | ||
10 | //#define ONESHOT_TAP_TOGGLE 2 /* Tapping this number of times holds the key until tapped once again. */ | 31 | //#define ONESHOT_TAP_TOGGLE 2 /* Tapping this number of times holds the key until tapped once again. */ |
32 | /* Define layer names */ | ||
33 | enum userspace_layers { | ||
34 | _DVORAK = 0, | ||
35 | _QWERTY, | ||
36 | _COLEMAK, | ||
37 | _BEAKL, | ||
38 | //_WORKMAN, | ||
39 | //_NORMAN, | ||
40 | //_MALTRON, | ||
41 | //_EUCALYN, | ||
42 | //_CARPLAX, | ||
43 | _DVORAK_BP, // beginning of Bepo | ||
44 | _BEAKL_BP, | ||
45 | _BEPO, | ||
46 | _LAYERS, | ||
47 | _NAV, // transient layers | ||
48 | _SYMB, | ||
49 | _SYMB_BP, | ||
50 | _KEYPAD, | ||
51 | _KEYPAD_BP, | ||
52 | _TOPROWS, | ||
53 | _TOPROWS_BP, | ||
54 | _RGB, | ||
55 | _ADJUST, | ||
56 | }; | ||
11 | 57 | ||
12 | #define DVORAK 0 // dvorak layout (default) | 58 | // clang-format off |
13 | #define QWERTY 1 | 59 | typedef union { |
14 | #define COLEMAK 2 | 60 | uint32_t raw; |
15 | #define WORKMAN 3 | 61 | struct { |
16 | #define NORMAN 4 | 62 | bool rgb_layer_change :1; |
17 | // bepo layers | 63 | bool is_overwatch :1; |
18 | #define DVORAK_ON_BEPO 6 // dvorak layout (default) | 64 | bool nuke_switch :1; |
19 | #define BEPO 7 // Bepo | 65 | bool swapped_numbers :1; |
20 | // non-default layers | 66 | bool rgb_matrix_idle_anim :1; |
21 | #define SYMB 8 // symbols and numbers | 67 | }; |
22 | #define SYMB_ON_BEPO 9 // symbols and numbers | 68 | } userspace_config_t; |
23 | #define MDIA 10 // mouse knd media eys | 69 | // clang-format on |
24 | #define LAYERS 11 // layers and right mousekeys. | 70 | extern userspace_config_t userspace_config; |
25 | #define XMONAD 12 // xmonad ie. dvorak. | ||
26 | #define XMONAD_FR 13 // xmonad ie. dvorak. | ||
27 | #define KEYPAD 14 // number and Fkey pads | ||
28 | #define KEYPAD_ON_BEPO 15 // number and Fkey pads. | ||
29 | #define _RGB 16 // RGB stuff. | ||
30 | |||
31 | 71 | ||
32 | #endif | 72 | #endif |