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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
/* Copyright 2020 Guillaume GĂ©rard
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include QMK_KEYBOARD_H
#include "keymap_helpers.h"
#ifdef TAP_DANCE_ENABLE
# include "tap_dances.h"
#endif
#ifdef RGBLIGHT_ENABLE
# include "underglow.h"
#endif
#ifdef LAYER_FN
# include "fn.h"
#endif
#ifdef LAYER_GAME
# include "game.h"
#endif
#ifdef LAYER_GIT
# include "git.h"
#endif
#ifdef LAYERS_ORTHO
# include "ortho.h"
#endif
#ifdef LAYERS_PROGRAMMER
# include "programmer.h"
#endif
typedef union {
uint32_t raw;
struct {
#ifdef RGBLIGHT_ENABLE
bool rgb_layer_change : 1;
#endif
};
} user_config_t;
enum layers {
_QWERTY,
_WORKMAN,
_COLEMAK,
_DVORAK,
#ifdef LAYER_GAME
_GAME,
#endif
#ifdef LAYERS_PROGRAMMER
_QWERTY_PROGRAMMER,
_WORKMAN_PROGRAMMER,
_COLEMAK_PROGRAMMER,
_DVORAK_PROGRAMMER,
_PROGRAMMER_SHIFTED,
#endif
#ifdef LAYERS_ORTHO
_LOWER,
_RAISE,
_ADJUST,
#endif
#ifdef LAYER_FN
_FN,
#endif
#ifdef LAYER_GIT
_GIT,
#endif
};
enum keycodes {
// Persistent layers switcher keys
QWERTY = SAFE_RANGE,
WORKMAN,
COLEMAK,
DVORAK,
#ifdef LAYER_GAME
GAME,
#endif
#ifdef LAYERS_PROGRAMMER
// Workman Programmer
QWERTY_PROGRAMMER,
WORKMAN_PROGRAMMER,
COLEMAK_PROGRAMMER,
DVORAK_PROGRAMMER,
PROGRAMMER_SHIFTED,
PG_GRV,
PG_1,
PG_2,
PG_3,
PG_4,
PG_5,
PG_6,
PG_7,
PG_8,
PG_9,
PG_0,
#endif
// RGB Underglow lights based on the layer key
RGB_LAYER,
#ifdef LAYER_GIT
// GIT commands
GIT_ADD,
GIT_BRANCH,
GIT_CHECKOUT,
GIT_CHERRYPICK,
GIT_COMMIT,
GIT_DIFF,
GIT_FETCH,
GIT_GREP,
GIT_LOG,
GIT_INIT,
GIT_MV,
GIT_MERGE,
GIT_PUSH,
GIT_PULL,
GIT_REBASE,
GIT_REMOTE,
GIT_RESET,
GIT_SHOW,
GIT_STASH,
GIT_STATUS,
GIT_TAG
#endif
};
#define RGB_LYR RGB_LAYER
|