aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/drashna.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/drashna.h')
-rw-r--r--users/drashna/drashna.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h
index 6645626d9..5df67792a 100644
--- a/users/drashna/drashna.h
+++ b/users/drashna/drashna.h
@@ -22,36 +22,36 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
22#include "wrappers.h" 22#include "wrappers.h"
23#include "process_records.h" 23#include "process_records.h"
24#ifdef TAP_DANCE_ENABLE 24#ifdef TAP_DANCE_ENABLE
25 #include "tap_dances.h" 25# include "tap_dances.h"
26#endif // TAP_DANCE_ENABLE 26#endif // TAP_DANCE_ENABLE
27#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) 27#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
28 #include "rgb_stuff.h" 28# include "rgb_stuff.h"
29#endif 29#endif
30#if defined(AUDIO_ENABLE) && __GNUC__ > 7 30#if defined(AUDIO_ENABLE) && __GNUC__ > 7
31 #if __has_include("drashna_song_list.h") 31# if __has_include("drashna_song_list.h")
32 #include "drashna_song_list.h" 32# include "drashna_song_list.h"
33 #endif 33# endif
34#endif 34#endif
35 35
36/* Define layer names */ 36/* Define layer names */
37enum userspace_layers { 37enum userspace_layers {
38 _QWERTY = 0, 38 _QWERTY = 0,
39 _NUMLOCK = 0, 39 _NUMLOCK = 0,
40 _COLEMAK, 40 _COLEMAK,
41 _DVORAK, 41 _DVORAK,
42 _WORKMAN, 42 _WORKMAN,
43 _NORMAN, 43 _NORMAN,
44 _MALTRON, 44 _MALTRON,
45 _EUCALYN, 45 _EUCALYN,
46 _CARPLAX, 46 _CARPLAX,
47 _MODS, /* layer 8 */ 47 _MODS, /* layer 8 */
48 _GAMEPAD, 48 _GAMEPAD,
49 _DIABLO, 49 _DIABLO,
50 _MACROS, 50 _MACROS,
51 _MEDIA, 51 _MEDIA,
52 _LOWER, 52 _LOWER,
53 _RAISE, 53 _RAISE,
54 _ADJUST, 54 _ADJUST,
55}; 55};
56 56
57/* 57/*
@@ -73,14 +73,14 @@ void led_set_keymap(uint8_t usb_led);
73void eeconfig_init_keymap(void); 73void eeconfig_init_keymap(void);
74 74
75typedef union { 75typedef union {
76 uint32_t raw; 76 uint32_t raw;
77 struct { 77 struct {
78 bool rgb_layer_change :1; 78 bool rgb_layer_change :1;
79 bool is_overwatch :1; 79 bool is_overwatch :1;
80 bool nuke_switch :1; 80 bool nuke_switch :1;
81 uint8_t unicode_mod :4; 81 uint8_t unicode_mod :4;
82 bool swapped_numbers :1; 82 bool swapped_numbers :1;
83 }; 83 };
84} userspace_config_t; 84} userspace_config_t;
85 85
86extern userspace_config_t userspace_config; 86extern userspace_config_t userspace_config;
@@ -92,13 +92,13 @@ But since TD() doesn't work when tap dance is disabled
92We use custom codes here, so we can substitute the right stuff 92We use custom codes here, so we can substitute the right stuff
93*/ 93*/
94#ifdef TAP_DANCE_ENABLE 94#ifdef TAP_DANCE_ENABLE
95#define KC_D3_1 TD(TD_D3_1) 95# define KC_D3_1 TD(TD_D3_1)
96#define KC_D3_2 TD(TD_D3_2) 96# define KC_D3_2 TD(TD_D3_2)
97#define KC_D3_3 TD(TD_D3_3) 97# define KC_D3_3 TD(TD_D3_3)
98#define KC_D3_4 TD(TD_D3_4) 98# define KC_D3_4 TD(TD_D3_4)
99#else // TAP_DANCE_ENABLE 99#else // TAP_DANCE_ENABLE
100#define KC_D3_1 KC_1 100# define KC_D3_1 KC_1
101#define KC_D3_2 KC_2 101# define KC_D3_2 KC_2
102#define KC_D3_3 KC_3 102# define KC_D3_3 KC_3
103#define KC_D3_4 KC_4 103# define KC_D3_4 KC_4
104#endif // TAP_DANCE_ENABLE 104#endif // TAP_DANCE_ENABLE