-
Notifications
You must be signed in to change notification settings - Fork 0
/
keymap.c
104 lines (100 loc) · 4.69 KB
/
keymap.c
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
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_12x1(
LSFT_T(KC_Q), LALT_T(KC_E), LGUI_T(KC_T), RGUI_T(KC_Y), RALT_T(KC_I), RSFT_T(KC_P),
LCTL_T(KC_Z), KC_C, KC_B, KC_N, KC_COMMA, RCTL_T(KC_SLASH)
),
[1] = LAYOUT_ortho_12x1(
LSFT_T(KC_1), LALT_T(KC_3), LGUI_T(KC_5), RGUI_T(KC_6), RALT_T(KC_8), RSFT_T(KC_0),
LCTL_T(KC_TAB), KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_SEMICOLON, KC_MINUS, RCTL_T(KC_EQUAL)
),
[2] = LAYOUT_ortho_12x1(
LSFT_T(KC_ESCAPE), KC_F1, KC_F3, KC_F4, KC_F6, KC_F8,
KC_F9, KC_F11, KC_F12, KC_GRAVE, TO(3), TO(0)
),
[3] = LAYOUT_ortho_12x1(
KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, KC_MS_WH_UP, KC_UP, KC_MS_WH_DOWN,
KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_LEFT, KC_DOWN, KC_RIGHT
)
};
const uint16_t PROGMEM W[] = {LSFT_T(KC_Q), LALT_T(KC_E), COMBO_END};
const uint16_t PROGMEM R[] = {LALT_T(KC_E), LGUI_T(KC_T), COMBO_END};
const uint16_t PROGMEM U[] = {RGUI_T(KC_Y), RALT_T(KC_I), COMBO_END};
const uint16_t PROGMEM O[] = {RALT_T(KC_I), RSFT_T(KC_P), COMBO_END};
const uint16_t PROGMEM A[] = {LSFT_T(KC_Q), LCTL_T(KC_Z), COMBO_END};
const uint16_t PROGMEM S[] = {LSFT_T(KC_Q), LCTL_T(KC_Z), LALT_T(KC_E), KC_C, COMBO_END};
const uint16_t PROGMEM D[] = {LALT_T(KC_E), KC_C, COMBO_END};
const uint16_t PROGMEM F[] = {LALT_T(KC_E), KC_C, LGUI_T(KC_T), KC_B, COMBO_END};
const uint16_t PROGMEM G[] = {LGUI_T(KC_T), KC_B, COMBO_END};
const uint16_t PROGMEM H[] = {RGUI_T(KC_Y), KC_N, COMBO_END};
const uint16_t PROGMEM J[] = {RGUI_T(KC_Y), KC_N, RALT_T(KC_I), KC_COMMA, COMBO_END};
const uint16_t PROGMEM K[] = {RALT_T(KC_I), KC_COMMA, COMBO_END};
const uint16_t PROGMEM L[] = {RALT_T(KC_I), KC_COMMA, RSFT_T(KC_P), RCTL_T(KC_SLASH), COMBO_END};
const uint16_t PROGMEM SEMICOLON[] = {RSFT_T(KC_P), RCTL_T(KC_SLASH), COMBO_END};
const uint16_t PROGMEM X[] = {LCTL_T(KC_Z), KC_C, COMBO_END};
const uint16_t PROGMEM V[] = {KC_C, KC_B, COMBO_END};
const uint16_t PROGMEM M[] = {KC_N, KC_COMMA, COMBO_END};
const uint16_t PROGMEM DOT[] = {KC_COMMA, RCTL_T(KC_SLASH), COMBO_END};
const uint16_t PROGMEM SPACE[] = {KC_N, KC_COMMA, RCTL_T(KC_SLASH), COMBO_END};
const uint16_t PROGMEM ENTER[] = {RGUI_T(KC_Y), RALT_T(KC_I), RSFT_T(KC_P), COMBO_END};
const uint16_t PROGMEM BACKSPACE[] = {LSFT_T(KC_Q), LALT_T(KC_E), LGUI_T(KC_T), COMBO_END};
const uint16_t PROGMEM L1[] = {LCTL_T(KC_Z), KC_C, KC_B, COMBO_END};
const uint16_t PROGMEM TWO[] = {LSFT_T(KC_1), LALT_T(KC_3), COMBO_END};
const uint16_t PROGMEM FOUR[] = {LALT_T(KC_3), LGUI_T(KC_5), COMBO_END};
const uint16_t PROGMEM SEVEN[] = {RGUI_T(KC_6), RALT_T(KC_8), COMBO_END};
const uint16_t PROGMEM NINE[] = {RALT_T(KC_8), RSFT_T(KC_0), COMBO_END};
const uint16_t PROGMEM BACKSLASH[] = {RSFT_T(KC_0), RCTL_T(KC_EQUAL), COMBO_END};
const uint16_t PROGMEM SPACE2[] = {KC_SEMICOLON, KC_MINUS, RCTL_T(KC_EQUAL), COMBO_END};
const uint16_t PROGMEM ENTER2[] = {RGUI_T(KC_6), RALT_T(KC_8), RSFT_T(KC_0), COMBO_END};
const uint16_t PROGMEM BACKSPACE2[] = {LSFT_T(KC_1), LALT_T(KC_3), LGUI_T(KC_5), COMBO_END};
const uint16_t PROGMEM L0[] = {LCTL_T(KC_TAB), KC_LEFT_BRACKET, KC_RIGHT_BRACKET, COMBO_END};
const uint16_t PROGMEM L2[] = {LCTL_T(KC_TAB), KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_SEMICOLON, KC_MINUS, RCTL_T(KC_EQUAL), COMBO_END};
const uint16_t PROGMEM FTWO[] = {KC_F1, KC_F3, COMBO_END};
const uint16_t PROGMEM FFIVE[] = {KC_F4, KC_F6, COMBO_END};
const uint16_t PROGMEM FSEVEN[] = {KC_F6, KC_F8, COMBO_END};
const uint16_t PROGMEM FTEN[] = {KC_F9, KC_F11, COMBO_END};
const uint16_t PROGMEM GRAVE[] = {LSFT_T(KC_ESCAPE), KC_F9, COMBO_END};
const uint16_t PROGMEM L2B[] = {KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, COMBO_END};
const uint16_t PROGMEM BTN3[] = {KC_MS_BTN1, KC_MS_BTN2, COMBO_END};
combo_t key_combos[] = {
COMBO(W, KC_W),
COMBO(R, KC_R),
COMBO(U, KC_U),
COMBO(O, KC_O),
COMBO(A, KC_A),
COMBO(S, KC_S),
COMBO(D, KC_D),
COMBO(F, KC_F),
COMBO(G, KC_G),
COMBO(H, KC_H),
COMBO(J, KC_J),
COMBO(K, KC_K),
COMBO(L, KC_L),
COMBO(SEMICOLON, KC_SEMICOLON),
COMBO(X, KC_X),
COMBO(V, KC_V),
COMBO(M, KC_M),
COMBO(DOT, KC_DOT),
COMBO(SPACE, KC_SPACE),
COMBO(ENTER, KC_ENTER),
COMBO(BACKSPACE, KC_BACKSPACE),
COMBO(L1, TO(1)),
COMBO(TWO, KC_2),
COMBO(FOUR, KC_4),
COMBO(SEVEN, KC_7),
COMBO(NINE, KC_9),
COMBO(SPACE2, KC_SPACE),
COMBO(ENTER2, KC_ENTER),
COMBO(BACKSPACE2, KC_BACKSPACE),
COMBO(L0, TO(0)),
COMBO(L2, TO(2)),
COMBO(FTWO, KC_F2),
COMBO(FFIVE, KC_F5),
COMBO(FSEVEN, KC_F7),
COMBO(FTEN, KC_F10),
COMBO(GRAVE, KC_GRAVE),
COMBO(L2B, TO(2)),
COMBO(BTN3, KC_MS_BTN3),
};