aboutsummaryrefslogtreecommitdiff
path: root/users/csc027/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/csc027/defines.h')
-rw-r--r--users/csc027/defines.h217
1 files changed, 217 insertions, 0 deletions
diff --git a/users/csc027/defines.h b/users/csc027/defines.h
new file mode 100644
index 000000000..3eaa95d83
--- /dev/null
+++ b/users/csc027/defines.h
@@ -0,0 +1,217 @@
1#pragma once
2#include "csc027.h"
3
4#define MC_LCAD LCA(KC_DEL) // Control-Alt-Delete
5#define MC_RSFE RSFT_T(KC_ENT) // Right Shift on hold, Enter on tap
6#define MC_LSEC LSFT_T(KC_ESC) // Left Shift on hold, Escape on tap
7
8#define ________________ KC_TRNS
9
10/* QWERTY Layer
11 *
12 * The basic layer of this keymap is a QWERTY layer.
13 *
14 * - Modifier keys more closely resemble a standard keyboard's layout.
15 * - There is a "Nxt L" function that cycles through the QWERTY and
16 * game layers. This has been implemented by hard coding the jump to the
17 * next layer in each of the layers using the TO() macro. Currently, the
18 * "Nxt L" function skips over the momentary layers (i.e., Mouse, Git,
19 * Lower, Raise, and Convenience layers).
20 * - There is a "Rst L" function that resets the current layer to the
21 * QWERTY layer.
22 * - The "Git" one shot function goes to the macro layer which has Git
23 * commands implemented.
24 * - The "Convc" momentary function goes to the Convenience layer which has a
25 * tenkey. Note: The tenkey will operate using the secondary functions if
26 * the Number Lock is not enabled (e.g., Left and Right instead of 4 and
27 * 6).
28 * - The Right Shift key also doubles as an Enter key if it is tapped rather
29 * than held.
30 *
31 * ,-----------------------------------. ,-----------------------------------.
32 * | Tab | Q | W | E | R | T | | Y | U | I | O | P |BkSpc|
33 * |-----------------------------------| |-----------------------------------|
34 * | Esc | A | S | D | F | G | | H | J | K | L | ; | ' |
35 * |-----------------------------------| |-----------------------------------|
36 * |Shift| Z | X | C | V | B | | N | M | , | . | / |Sf/En|
37 * |-----------------------------------| |-----------------------------------|
38 * |Cntrl|Super| Alt |Convc|Lower|Space| |Space|Raise| \ | Git |Nxt L|Rst L|
39 * `-----------------------------------' `-----------------------------------'
40 */
41
42#define _____________________QWERTY_L1_____________________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
43#define _____________________QWERTY_L2_____________________ KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G
44#define _____________________QWERTY_L3_____________________ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B
45#define _____________________QWERTY_L4_____________________ KC_LCTL, KC_LGUI, KC_LALT, MO(_CN), LOWER, KC_SPC
46
47#define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC
48#define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT
49#define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE
50#define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, OSL(_GT), TO(_GW), XXXXXXX
51
52/* Raise Layer
53 *
54 * The Raise layer accommodates the Home, End, Page Up, and Page Down keys
55 * in what would be the Vim arrow keys positions. This is done as opposed
56 * to using C-D, C-U, 0, $, and ^, because it would require a separate layer.
57 *
58 * - The top row has the shifted versions of the number row, rather than the
59 * numbers themselves. This is a change to have a mnemonic where shifted
60 * elements are on the Raise layer. This also makes it easy to use some of
61 * Vim style movement controls (e.g. $, %), but makes it harder for others
62 * (e.g. ^, (, )). Consider swapping the number row with the shifted number
63 * row if you do not care about the mnemonic.
64 * - The Left Brace, Right Brace, Underscore, and Plus keys have been moved
65 * from the right side to the left side. This will take some getting used
66 * to, as these keys are normally on the right side of the keyboard. An
67 * alternative would be to keep the keys on the right hand side just under
68 * the Parentheses. This would prevent the use of Vim arrow keys however.
69 * - The F keys have been laid across the bottom in the Raise layer, rather
70 * than the Lower layer to allow easy access to the Alt-F4 chord for
71 * Windows. When the F keys were put in the Lower layer, it made it hard
72 * to use this chord, as the Lower key, the Alt key, and the F4 key were
73 * all right next to each other.
74 * - A Delete key has been added in this layer to allow easy access to the
75 * Control-Alt-Delete login chord for Windows.
76 *
77 * ,-----------------------------------. ,-----------------------------------.
78 * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
79 * |-----------------------------------| |-----------------------------------|
80 * | | _ | + | { | } | Caps| | Home| PgDn| PgUp| End | | |
81 * |-----------------------------------| |-----------------------------------|
82 * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | |
83 * |-----------------------------------| |-----------------------------------|
84 * | | | | | | | | | | | | | |
85 * `-----------------------------------' `-----------------------------------'
86 */
87
88#define ______________________RAISE_L1_____________________ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC
89#define ______________________RAISE_L2_____________________ _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_CAPS
90#define ______________________RAISE_L3_____________________ _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
91#define ______________________RAISE_L4_____________________ _______, _______, _______, _______, _______, _______
92
93#define ______________________RAISE_R1_____________________ KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT
94#define ______________________RAISE_R2_____________________ KC_HOME, KC_PGDN, KC_PGUP, KC_END, XXXXXXX, XXXXXXX
95#define ______________________RAISE_R3_____________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______
96#define ______________________RAISE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
97
98/* Lower Layer
99 *
100 * The lower layout scheme accommodates the Vim style arrow keys.
101 *
102 * - The arrow keys are in the normal Vim positions.
103 * - The Left Square Bracket, Right Square Bracket, Minus, and Equal keys
104 * have been moved from the right side to the left side. This will take
105 * some getting used to, as it is on the left rather than the right.
106 * - A Delete key has been added in this layer to allow easy access to the
107 * Control-Alt-Delete login chord for Windows.
108 * - The remaining F keys are in this layer.
109 *
110 * ,-----------------------------------. ,-----------------------------------.
111 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
112 * |-----------------------------------| |-----------------------------------|
113 * | | - | = | [ | ] | | | Left| Down| Up |Right| | |
114 * |-----------------------------------| |-----------------------------------|
115 * | | F11 | F12 | | | | | | | | | | |
116 * |-----------------------------------| |-----------------------------------|
117 * | | | | | | | | | | | | | |
118 * `-----------------------------------' `-----------------------------------'
119 */
120
121#define ______________________LOWER_L1_____________________ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5
122#define ______________________LOWER_L2_____________________ _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, XXXXXXX
123#define ______________________LOWER_L3_____________________ _______, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX
124#define ______________________LOWER_L4_____________________ _______, _______, _______, _______, _______, _______
125
126#define ______________________LOWER_R1_____________________ KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT
127#define ______________________LOWER_R2_____________________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX
128#define ______________________LOWER_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
129#define ______________________LOWER_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
130
131
132/* MIT Layout (Mouse)
133 *
134 * The mouse layer adds keys to use the keyboard like a mouse.
135 *
136 * ,-----------------------------------. ,-----------------------------------.
137 * | | | | | | | | | | | | | |
138 * |-----------------------------------| |-----------------------------------|
139 * | | | |Ms-Lc|Ms-Rc| | | Ms-L| Ms-D| Ms-U| Ms-R| | |
140 * |-----------------------------------| |-----------------------------------|
141 * | | | | | | | | | | | | | |
142 * |-----------------------------------| |-----------------------------------|
143 * | | | | | | | | | | | | | |
144 * `-----------------------------------' `-----------------------------------'
145 */
146
147#define ______________________MOUSE_L1_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
148#define ______________________MOUSE_L2_____________________ _______, XXXXXXX, XXXXXXX, KC_BTN1, KC_BTN2, XXXXXXX
149#define ______________________MOUSE_L3_____________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
150#define ______________________MOUSE_L4_____________________ _______, _______, _______, _______, _______, _______
151
152#define ______________________MOUSE_R1_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
153#define ______________________MOUSE_R2_____________________ KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, XXXXXXX, XXXXXXX
154#define ______________________MOUSE_R3_____________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
155#define ______________________MOUSE_R4_____________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
156
157/* MIT Layout (Git)
158 *
159 * The macro layer that has common git commands.
160 *
161 * ,-----------------------------------. ,-----------------------------------.
162 * | |Chery| Show|Rebas|Reset| Tag | | | Pull| Init|Rmote| Push| |
163 * |-----------------------------------| |-----------------------------------|
164 * | | Add |Sttus| Diff|Fetch| Grep| |Stash| |ChkOt| Log | | |
165 * |-----------------------------------| |-----------------------------------|
166 * | | | |Comit| Move|Brnch| | |Merge| | | | |
167 * |-----------------------------------| |-----------------------------------|
168 * | | | | | | | | | | | | | |
169 * `-----------------------------------' `-----------------------------------'
170 */
171
172#define _______________________GIT_L1______________________ XXXXXXX, GIT_CHR, GIT_SHW, GIT_RBS, GIT_RST, GIT_TAG
173#define _______________________GIT_L2______________________ _______, GIT_ADD, GIT_STS, GIT_DIF, GIT_FTC, GIT_GRP
174#define _______________________GIT_L3______________________ _______, XXXXXXX, XXXXXXX, GIT_CMT, GIT_MOV, GIT_BRC
175#define _______________________GIT_L4______________________ _______, _______, _______, _______, _______, _______
176
177#define _______________________GIT_R1______________________ XXXXXXX, GIT_PUL, GIT_INT, GIT_RMT, GIT_PSH, XXXXXXX
178#define _______________________GIT_R2______________________ GIT_STH, XXXXXXX, GIT_CHK, GIT_LOG, XXXXXXX, XXXXXXX
179#define _______________________GIT_R3______________________ XXXXXXX, GIT_MRG, XXXXXXX, XXXXXXX, XXXXXXX, _______
180#define _______________________GIT_R4______________________ _______, _______, _______, _______, XXXXXXX, XXXXXXX
181
182
183/* MIT Layout (Convenience)
184 *
185 * The Convenience layer adds a tenkey and miscellaneous chords to the keyboard.
186 * The lack of a fifth row means that some of the tenkey's functions need to be
187 * moved to the left of tenkey from the top.
188 *
189 * - The Number Lock key is physically in the same spot as the Caps Lock key
190 * in the raise layer.
191 * - There is also a Backspace Key for convenience.
192 * - There is a convenience macro to type the Control-Alt-Delete login chord for Windows.
193 * - There is a convenience macro to Minimize Remote Desktop within Remote Desktop
194 * in Windows.
195 * - There is a convenience macro to cycle through programs in Windows.
196 * - There is a convenience macro to go to the previous program in Windows.
197 *
198 * ,-----------------------------------. ,-----------------------------------.
199 * | | |Insrt|ScrLk|PrtSc| | | * | 7 | 8 | 9 | - |BkSpc|
200 * |-----------------------------------| |-----------------------------------|
201 * | | | App | LCAD|MRDP7|NmLck| | / | 4 | 5 | 6 | + | |
202 * |-----------------------------------| |-----------------------------------|
203 * | | | | ATRD|MRDP8| | | | 1 | 2 | 3 |Enter| |
204 * |-----------------------------------| |-----------------------------------|
205 * | | | | | | | | | 0 | 0 | . | | |
206 * `-----------------------------------' `-----------------------------------'
207 */
208
209#define ___________________CONVENIENCE_L1__________________ XXXXXXX, XXXXXXX, KC_INS, KC_SLCK, KC_PSCR, XXXXXXX
210#define ___________________CONVENIENCE_L2__________________ _______, XXXXXXX, KC_APP, MC_LCAD, MC_MRD7, KC_NLCK
211#define ___________________CONVENIENCE_L3__________________ _______, XXXXXXX, XXXXXXX, MC_ATRD, MC_MRD8, XXXXXXX
212#define ___________________CONVENIENCE_L4__________________ _______, _______, _______, _______, _______, _______
213
214#define ___________________CONVENIENCE_R1__________________ KC_PAST, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_BSPC
215#define ___________________CONVENIENCE_R2__________________ KC_PSLS, KC_P4, KC_P5, KC_P6, KC_PPLS, XXXXXXX
216#define ___________________CONVENIENCE_R3__________________ XXXXXXX, KC_P1, KC_P2, KC_P3, KC_PENT, _______
217#define ___________________CONVENIENCE_R4__________________ _______, KC_P0, KC_P0, KC_PDOT, XXXXXXX, XXXXXXX