Update Dvorak, Colemak and Workman keycode aliases (#8217)
[jackhill/qmk/firmware.git] / quantum / keymap_extras / keymap_colemak.h
1 /* Copyright 2015-2016 Jack Humbert
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 #pragma once
18
19 #include "keymap.h"
20
21 // clang-format off
22
23 /*
24 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
25 * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │       │
26 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
27 * │     │ Q │ W │ F │ P │ G │ J │ L │ U │ Y │ ; │ [ │ ] │  \  │
28 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
29 * │      │ A │ R │ S │ T │ D │ H │ N │ E │ I │ O │ ' │        │
30 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
31 * │        │ Z │ X │ C │ V │ B │ K │ M │ , │ . │ / │          │
32 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
33 * │    │    │    │                        │    │    │    │    │
34 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
35 */
36 // Row 1
37 #define CM_GRV KC_GRV // `
38 #define CM_1 KC_1 // 1
39 #define CM_2 KC_2 // 2
40 #define CM_3 KC_3 // 3
41 #define CM_4 KC_4 // 4
42 #define CM_5 KC_5 // 5
43 #define CM_6 KC_6 // 6
44 #define CM_7 KC_7 // 7
45 #define CM_8 KC_8 // 8
46 #define CM_9 KC_9 // 9
47 #define CM_0 KC_0 // 0
48 #define CM_MINS KC_MINS // -
49 #define CM_EQL KC_EQL // =
50 // Row 2
51 #define CM_Q KC_Q // Q
52 #define CM_W KC_W // W
53 #define CM_F KC_E // F
54 #define CM_P KC_R // P
55 #define CM_G KC_T // G
56 #define CM_J KC_Y // J
57 #define CM_L KC_U // L
58 #define CM_U KC_I // U
59 #define CM_Y KC_O // Y
60 #define CM_SCLN KC_P // ;
61 #define CM_LBRC KC_LBRC // [
62 #define CM_RBRC KC_RBRC // ]
63 #define CM_BSLS KC_BSLS // (backslash)
64 // Row 3
65 #define CM_A KC_A // A
66 #define CM_R KC_S // R
67 #define CM_S KC_D // S
68 #define CM_T KC_F // T
69 #define CM_D KC_G // D
70 #define CM_H KC_H // H
71 #define CM_N KC_J // N
72 #define CM_E KC_K // E
73 #define CM_I KC_L // I
74 #define CM_O KC_SCLN // O
75 #define CM_QUOT KC_QUOT // '
76 // Row 4
77 #define CM_Z KC_Z // Z
78 #define CM_X KC_X // X
79 #define CM_C KC_C // C
80 #define CM_V KC_V // V
81 #define CM_B KC_B // B
82 #define CM_K KC_N // K
83 #define CM_M KC_M // M
84 #define CM_COMM KC_COMM // ,
85 #define CM_DOT KC_DOT // .
86 #define CM_SLSH KC_SLSH // /
87
88 /* Shifted symbols
89 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
90 * │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │       │
91 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
92 * │     │   │   │   │   │   │   │   │   │   │ : │ { │ } │  |  │
93 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
94 * │      │   │   │   │   │   │   │   │   │   │   │ " │        │
95 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
96 * │        │   │   │   │   │   │   │   │ < │ > │ ? │          │
97 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
98 * │    │    │    │                        │    │    │    │    │
99 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
100 */
101 // Row 1
102 #define CM_TILD S(CM_GRV) // ~
103 #define CM_EXLM S(CM_1) // !
104 #define CM_AT S(CM_2) // @
105 #define CM_HASH S(CM_3) // #
106 #define CM_DLR S(CM_4) // $
107 #define CM_PERC S(CM_5) // %
108 #define CM_CIRC S(CM_6) // ^
109 #define CM_AMPR S(CM_7) // &
110 #define CM_ASTR S(CM_8) // *
111 #define CM_LPRN S(CM_9) // (
112 #define CM_RPRN S(CM_0) // )
113 #define CM_UNDS S(CM_MINS) // _
114 #define CM_PLUS S(CM_EQL) // +
115 // Row 2
116 #define CM_COLN S(CM_SCLN) // :
117 #define CM_LCBR S(CM_LBRC) // {
118 #define CM_RCBR S(CM_RBRC) // }
119 #define CM_PIPE S(CM_BSLS) // |
120 // Row 3
121 #define CM_DQUO S(CM_QUOT) // "
122 // Row 4
123 #define CM_LABK S(CM_COMM) // <
124 #define CM_RABK S(CM_DOT) // >
125 #define CM_QUES S(CM_SLSH) // /
126
127 // DEPRECATED
128 #define KC_CM_Q CM_Q
129 #define KC_CM_W CM_W
130 #define KC_CM_F CM_F
131 #define KC_CM_P CM_P
132 #define KC_CM_G CM_G
133 #define KC_CM_J CM_J
134 #define KC_CM_L CM_L
135 #define KC_CM_U CM_U
136 #define KC_CM_Y CM_Y
137 #define KC_CM_SCLN CM_SCLN
138 #define KC_CM_A CM_A
139 #define KC_CM_R CM_R
140 #define KC_CM_S CM_S
141 #define KC_CM_T CM_T
142 #define KC_CM_D CM_D
143 #define KC_CM_H CM_H
144 #define KC_CM_N CM_N
145 #define KC_CM_E CM_E
146 #define KC_CM_I CM_I
147 #define KC_CM_O CM_O
148 #define KC_CM_Z CM_Z
149 #define KC_CM_X CM_X
150 #define KC_CM_C CM_C
151 #define KC_CM_V CM_V
152 #define KC_CM_B CM_B
153 #define KC_CM_K CM_K
154 #define KC_CM_M CM_M
155 #define KC_CM_COMM CM_COMM
156 #define KC_CM_DOT CM_DOT
157 #define KC_CM_SLSH CM_SLSH