]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/talljoe/talljoe.h
Some more tweaks to make everything look nice
[qmk_firmware.git] / users / talljoe / talljoe.h
1 #ifndef USERSPACE
2 #define USERSPACE
3
4 #include "quantum.h"
5
6 enum userspace_custom_keycodes {
7   KC_MAKE = SAFE_RANGE, // can always be here
8   DFAULTS,
9   TOGGLE_BACKLIGHT,
10   EFFECT,
11   EFFECT_END = EFFECT + 10
12 };
13
14 #ifndef RESET_LAYER
15 #define RESET_LAYER 15
16 #endif
17
18 enum layers {
19     _BASE = 0,
20     _WORKMAN,
21     _NORMAN,
22     _DVORAK,
23     _COLMAK,
24     _GAME,
25     _NAV,
26     _NUM,
27     _ADJUST,
28     _RESET = RESET_LAYER,
29 };
30
31 #define _______ KC_TRNS
32 #define XXXXXXX KC_NO
33
34 #define MO_NAV    MO(_NAV)
35 #define MO_ADJ    MO(_ADJUST)
36 #define MO_RST    MO(_RESET)
37 #define TG_ADJ    TG(_ADJUST)
38 #ifdef ENABLE_GAME_LAYER
39   #define TG_GAME TG(_GAME)
40 #else
41   #define TG_GAME KC_NO
42 #endif
43 #define LY_QWER   DF(_BASE)
44 #define LY_WORK   DF(_WORKMAN)
45 #define LY_NRMN   DF(_NORMAN)
46 #define LY_DVRK   DF(_DVORAK)
47 #define LY_CLMK   DF(_COLMAK)
48 #define TG_NKRO   MAGIC_TOGGLE_NKRO
49 #define KC_PTT    KC_F24
50 #define MS_MID    KC_MS_BTN3
51 #define FX(x)     (EFFECT + x)
52
53 #define US_CAPS   CTL_T(KC_ESC)
54 #define US_QUOT   RCTL_T(KC_QUOT)
55 #define US_MINS   RCTL_T(KC_QUOT)
56 #define US_ENT    LT(_NUM, KC_ENT)
57
58 #ifndef SPACE_COUNT
59   #define SPACE_COUNT 1
60 #endif
61 #if (SPACE_COUNT == 1)
62   #define KC_SPC1   LT(_NAV, KC_SPC)
63   #define KC_SPC2   XXXXXXX
64   #define KC_SPC3   XXXXXXX
65
66   #define NV_SPC1   _______
67   #define NV_SPC2   _______
68   #define NV_SPC3   _______
69
70   #define NM_SPC1   _______
71   #define NM_SPC2   _______
72   #define NM_SPC3   _______
73 #elif (SPACE_COUNT == 3)
74   #define KC_SPC1   KC_BSPC
75   #define KC_SPC2   LT(_NUM,KC_ENT)
76   #define KC_SPC3   LT(_NAV,KC_SPC)
77
78   #define NV_SPC1   KC_SPC
79   #define NV_SPC2   C_S_T(KC_ENT)
80   #define NV_SPC3   KC_SPC
81
82   #define NM_SPC2   XXXXXXX
83   #define NM_SPC1   KC_SPC
84   #define NM_SPC3   KC_0
85 #else
86   #error "Unsupported space count:" SPACE_COUNT
87 #endif
88
89 #ifndef ZEAL_RGB
90   #define BR_INC KC_NO
91   #define BR_DEC KC_NO
92   #define EF_INC KC_NO
93   #define EF_DEC KC_NO
94   #define ES_INC KC_NO
95   #define ES_DEC KC_NO
96   #define H1_INC KC_NO
97   #define H1_DEC KC_NO
98   #define S1_INC KC_NO
99   #define S1_DEC KC_NO
100   #define H2_INC KC_NO
101   #define H2_DEC KC_NO
102   #define S2_INC KC_NO
103   #define S2_DEC KC_NO
104   #define FN_MO13 KC_NO
105   #define FN_MO2 KC_NO
106 #endif
107
108 #endif