-
Notifications
You must be signed in to change notification settings - Fork 0
/
layers.h
126 lines (103 loc) · 7.26 KB
/
layers.h
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
/* Copyright (C) 2021 @dreipunkteinsvier
*
* 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
// Home row mod tap macros
#define HM_A LGUI_T(KC_A)
#define HM_S LALT_T(KC_S)
#define HM_D LCTL_T(KC_D)
#define HM_F LSFT_T(KC_F)
#define HM_G RALT_T(KC_G)
#define HM_H RALT_T(KC_H)
#define HM_J RSFT_T(KC_J)
#define HM_K LCTL_T(KC_K)
#define HM_L LALT_T(KC_L)
#define HM_SCLN LGUI_T(KC_SCLN)
#define CM_A LGUI_T(KC_A)
#define CM_R LALT_T(KC_R)
#define CM_S LCTL_T(KC_S)
#define CM_T LSFT_T(KC_T)
#define CM_G RALT_T(KC_G)
#define CM_M RALT_T(KC_M)
#define CM_N RSFT_T(KC_N)
#define CM_E LCTL_T(KC_E)
#define CM_I LALT_T(KC_I)
#define CM_O LGUI_T(KC_O)
#define HM_ESC LCTL_T(KC_ESC)
// layer names
#define QWERTY 0
#define COLDH 1
#define NAV 2
#define LIGHT 3
#define NUM 4
#define FUNC 5
// layer strip
#define __BLANK_4_________________________ _______, _______, _______, _______
#define __BLANK_3________________ _______, _______, _______
#define __BLANK_2_______ _______, _______
#define __BLANK_DEL_____ _______, KC_DEL
#define __QWERTY_L1________________________________ KC_Q, KC_W, KC_E, KC_R, KC_T
#define __QWERTY_L2________________________________ KC_A, KC_S, KC_D, KC_F, KC_G
#define __QWERTY_L2_GACS___________________________ HM_A, HM_S, HM_D, HM_F, HM_G
#define __QWERTY_L3________________________________ KC_Z, KC_X, KC_C, KC_V, KC_B
#define __QWERTY_R1________________________________ KC_Y, KC_U, KC_I, KC_O, KC_P
#define __QWERTY_R2________________________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
#define __QWERTY_R2_SCAG___________________________ HM_H, HM_J, HM_K, HM_L, HM_SCLN
#define __QWERTY_R3________________________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH
#define __COLEMAK_L1_______________________________ KC_Q, KC_W, KC_F, KC_P, KC_B
#define __COLEMAK_L2_______________________________ KC_A, KC_R, KC_S, KC_T, KC_G
#define __COLEMAK_L2_GACS__________________________ CM_A, CM_R, CM_S, CM_T, CM_G
#define __COLEMAK_L3_______________________________ KC_Z, KC_X, KC_C, KC_D, KC_V
#define __COLEMAK_R1_______________________________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN
#define __COLEMAK_R2_______________________________ KC_M, KC_N, KC_E, KC_I, KC_O
#define __COLEMAK_R2_SCAG__________________________ CM_M, CM_N, CM_E, CM_I, CM_O
#define __COLEMAK_R3_______________________________ KC_K, KC_H, KC_COMM, KC_DOT, KC_SLASH
#define __3_KEY_L4_________________________________ KC_ESC, LT(LIGHT, KC_TAB), LT(NAV, KC_ENT)
#define __3_KEY_R4_________________________________ LT(NUM, KC_SPC), LT(FUNC, KC_BSPC), KC_DEL
#define __2_KEY_L4______ LT(LIGHT, KC_TAB), LT(NAV, KC_ENT)
#define __2_KEY_R4______ LT(NUM, KC_SPC), LT(FUNC, KC_BSPC)
#define __GACS_L2_________________________ KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT
#define __SCAG_R2_________________________ KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI
#define __NAV_R1__________________________ LCTL(KC_LEFT), LCTL(KC_DOWN), LCTL(KC_UP), LCTL(KC_RGHT)
#define __NAV_R2__________________________ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
#define __NAV_R3__________________________ KC_HOME, KC_PGDN, KC_PGUP, KC_END
#define __MEDIA_R1________________________ KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT
#define __LIGHT_R1_________________________________ RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI
#define __LIGHT_R2_________________________________ RGB_M_P, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD
#define __LIGHT_R3_________________________________ TO(QWERTY), TO(COLDH), _______, _______, QK_BOOTLOADER
#define __NUM_L1___________________________________ KC_MINS, KC_7, KC_8, KC_9, KC_0
#define __NUM_L2___________________________________ KC_EQL, KC_4, KC_5, KC_6, KC_QUOT
#define __NUM_L3___________________________________ KC_GRV, KC_1, KC_2, KC_3, KC_BSLS
#define __SYM_L1___________________________________ KC_UNDS, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN
#define __SYM_L2___________________________________ KC_PLUS, KC_DLR, KC_PERC, KC_CIRC, KC_DQUO
#define __SYM_L3___________________________________ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE
#define __FUN_L1___________________________________ KC_F12, KC_F7, KC_F8, KC_F9, KC_PSCR
#define __FUN_L2___________________________________ KC_F11, KC_F4, KC_F5, KC_F6, KC_CAPS
#define __FUN_L3___________________________________ KC_F10, KC_F1, KC_F2, KC_F3, KC_INS
#define __HHKB_BASE_ROW1___________________________ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV
#define __HHKB_BASE_ROW2___________________________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC
#define __HHKB_BASE_ROW3___________________________ KC_LCTL, HM_A, HM_S, HM_D, HM_F, KC_G, KC_H, HM_J, HM_K, HM_L, HM_SCLN, KC_QUOT, KC_ENT
#define __HHKB_BASE_ROW4___________________________ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(RAISE)
#define __HHKB_BASE_ROW5___________________________ KC_LGUI, KC_LALT, LT(LOWER, KC_SPC), KC_RALT, KC_APP
#define __HHKB_RAISE_ROW1__________________________ _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL
#define __HHKB_RAISE_ROW2__________________________ _______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______, KC_PSCR, KC_UP, _______, KC_DEL
#define __HHKB_RAISE_ROW3__________________________ _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_LEFT, KC_RGHT, _______
#define __HHKB_RAISE_ROW4__________________________ _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_DOWN, _______, _______
#define __HHKB_RAISE_ROW5__________________________ _______, _______, _______, _______, _______
#define __HHKB_LOWER_ROW1__________________________ _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL
#define __HHKB_LOWER_ROW2__________________________ _______, _______, _______, _______, _______, KC_LCBR, KC_RCBR, __NAV_R1__________________________, KC_UP, _______, KC_DEL
#define __HHKB_LOWER_ROW3__________________________ _______, _______, _______, _______, _______, KC_LPRN, KC_RPRN, __NAV_R2__________________________, _______, _______
#define __HHKB_LOWER_ROW4__________________________ _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, __NAV_R3__________________________, _______, _______
#define __HHKB_LOWER_ROW5__________________________ _______, _______, _______, _______, _______