diff options
Diffstat (limited to 'keyboards/7c8/framework/keymaps')
-rw-r--r-- | keyboards/7c8/framework/keymaps/default/keymap.c | 157 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/steven/config.h | 23 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/steven/keymap.c | 130 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/steven/readme.md | 3 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/steven/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/via/config.h | 23 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/via/keymap.c | 91 | ||||
-rw-r--r-- | keyboards/7c8/framework/keymaps/via/rules.mk | 2 |
8 files changed, 430 insertions, 0 deletions
diff --git a/keyboards/7c8/framework/keymaps/default/keymap.c b/keyboards/7c8/framework/keymaps/default/keymap.c new file mode 100644 index 000000000..592cd0219 --- /dev/null +++ b/keyboards/7c8/framework/keymaps/default/keymap.c | |||
@@ -0,0 +1,157 @@ | |||
1 | /* Copyright 2020 Steven Nguyen | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | enum framework_layers { | ||
20 | _BASE, | ||
21 | _LOWER, | ||
22 | _RAISE, | ||
23 | _BOTH, | ||
24 | _FN | ||
25 | }; | ||
26 | |||
27 | enum framework_keycodes { | ||
28 | LOWER = SAFE_RANGE, | ||
29 | RAISE, | ||
30 | BOTH, | ||
31 | FN | ||
32 | }; | ||
33 | |||
34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
35 | [_BASE] = LAYOUT_ortho_5x12( | ||
36 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MEDIA_PLAY_PAUSE, | ||
37 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
38 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
40 | KC_LCTL, KC_LGUI, KC_LALT, FN, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
41 | ), | ||
42 | |||
43 | [_LOWER] = LAYOUT_ortho_5x12( | ||
44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
45 | KC_LEAD, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, | ||
46 | KC_DEL, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, _______, _______, _______, _______, | ||
47 | KC_TRNS, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, | ||
48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, _______, _______, KC_TRNS, KC_HOME, KC_PGDN, KC_PGUP, KC_END | ||
49 | ), | ||
50 | |||
51 | [_RAISE] = LAYOUT_ortho_5x12( | ||
52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
53 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
55 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
56 | _______, _______, _______, _______, KC_TRNS, _______, _______, KC_TRNS, _______, _______, _______, _______ | ||
57 | ), | ||
58 | |||
59 | [_BOTH] = LAYOUT_ortho_5x12( | ||
60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
61 | _______, LALT(KC_F4), _______, KC_MYCM, LGUI(KC_R), _______, _______, _______, _______, _______, _______, _______, | ||
62 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG | ||
65 | ), | ||
66 | |||
67 | [_FN] = LAYOUT_ortho_5x12( | ||
68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
69 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
70 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
72 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
73 | ) | ||
74 | }; | ||
75 | |||
76 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
77 | if (index == 0) { | ||
78 | switch (get_highest_layer(layer_state)) { | ||
79 | case _BASE: | ||
80 | if (clockwise) { | ||
81 | tap_code(KC_AUDIO_VOL_UP); | ||
82 | } else { | ||
83 | tap_code(KC_AUDIO_VOL_DOWN); | ||
84 | } | ||
85 | break; | ||
86 | |||
87 | case _LOWER: | ||
88 | if (clockwise) { | ||
89 | tap_code16(LCTL(KC_TAB)); | ||
90 | } else { | ||
91 | tap_code16(LCTL(LSFT(KC_TAB))); | ||
92 | } | ||
93 | break; | ||
94 | |||
95 | case _RAISE: | ||
96 | if (clockwise) { | ||
97 | tap_code16(LCTL(KC_RGHT)); | ||
98 | } else { | ||
99 | tap_code16(LCTL(KC_LEFT)); | ||
100 | } | ||
101 | break; | ||
102 | |||
103 | case _BOTH: | ||
104 | if (clockwise) { | ||
105 | tap_code16(LCTL(KC_Y)); | ||
106 | } else { | ||
107 | tap_code16(LCTL(KC_Z)); | ||
108 | } | ||
109 | break; | ||
110 | |||
111 | case _FN: | ||
112 | if (clockwise) { | ||
113 | tap_code(_______); | ||
114 | } else { | ||
115 | tap_code(_______); | ||
116 | } | ||
117 | break; | ||
118 | |||
119 | default: | ||
120 | break; | ||
121 | } | ||
122 | } | ||
123 | return true; | ||
124 | } | ||
125 | |||
126 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
127 | switch (keycode) { | ||
128 | case LOWER: | ||
129 | if (record->event.pressed) { | ||
130 | layer_on(_LOWER); | ||
131 | update_tri_layer(_LOWER, _RAISE, _BOTH); | ||
132 | } else { | ||
133 | layer_off(_LOWER); | ||
134 | update_tri_layer(_LOWER, _RAISE, _BOTH); | ||
135 | } | ||
136 | return false; | ||
137 | |||
138 | case RAISE: | ||
139 | if (record->event.pressed) { | ||
140 | layer_on(_RAISE); | ||
141 | update_tri_layer(_LOWER, _RAISE, _BOTH); | ||
142 | } else { | ||
143 | layer_off(_RAISE); | ||
144 | update_tri_layer(_LOWER, _RAISE, _BOTH); | ||
145 | } | ||
146 | return false; | ||
147 | |||
148 | case FN: | ||
149 | if (record->event.pressed) { | ||
150 | layer_on(_FN); | ||
151 | } else { | ||
152 | layer_off(_FN); | ||
153 | } | ||
154 | return false; | ||
155 | } | ||
156 | return true; | ||
157 | } | ||
diff --git a/keyboards/7c8/framework/keymaps/steven/config.h b/keyboards/7c8/framework/keymaps/steven/config.h new file mode 100644 index 000000000..2dfd41f7c --- /dev/null +++ b/keyboards/7c8/framework/keymaps/steven/config.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2020 Steven Nguyen | ||
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 | /* VIA specific defines to increase dynamic layer count */ | ||
18 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 3 | ||
19 | #define DYNAMIC_KEYMAP_LAYER_COUNT 5 | ||
20 | |||
21 | /* defining an extra row for encoder assignment in VIA */ | ||
22 | #undef MATRIX_ROWS | ||
23 | #define MATRIX_ROWS 11 \ No newline at end of file | ||
diff --git a/keyboards/7c8/framework/keymaps/steven/keymap.c b/keyboards/7c8/framework/keymaps/steven/keymap.c new file mode 100644 index 000000000..77134db5b --- /dev/null +++ b/keyboards/7c8/framework/keymaps/steven/keymap.c | |||
@@ -0,0 +1,130 @@ | |||
1 | /* Copyright 2020 Steven Nguyen | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | enum framework_layers { | ||
20 | _BASE, | ||
21 | _LOWER, | ||
22 | _RAISE, | ||
23 | _BOTH, | ||
24 | _FN | ||
25 | }; | ||
26 | |||
27 | enum framework_keycodes { | ||
28 | LOWER = SAFE_RANGE, | ||
29 | RAISE, | ||
30 | BOTH, | ||
31 | FN | ||
32 | }; | ||
33 | |||
34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
35 | [_BASE] = framework_via( | ||
36 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MEDIA_PLAY_PAUSE, | ||
37 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
38 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
40 | KC_LCTL, KC_LGUI, KC_LALT, MO(_FN), MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, | ||
41 | KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP | ||
42 | ), | ||
43 | |||
44 | [_LOWER] = framework_via( | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
46 | KC_LEAD, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, | ||
47 | KC_DEL, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, _______, _______, _______, _______, | ||
48 | _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, | ||
49 | _______, _______, _______, _______, _______, _______, _______, MO(_BOTH), KC_HOME, KC_PGDN, KC_PGUP, KC_END, | ||
50 | C(S(KC_TAB)), C(KC_TAB) | ||
51 | ), | ||
52 | |||
53 | [_RAISE] = framework_via( | ||
54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
55 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
58 | _______, _______, _______, _______, MO(_BOTH), _______, _______, _______, _______, _______, _______, _______, | ||
59 | C(KC_LEFT), C(KC_RIGHT) | ||
60 | ), | ||
61 | |||
62 | [_BOTH] = framework_via( | ||
63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, EEP_RST, DEBUG, | ||
68 | C(KC_Z), C(KC_Y) | ||
69 | ), | ||
70 | |||
71 | [_FN] = framework_via( | ||
72 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
74 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
76 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
77 | KC_MS_WH_LEFT, KC_MS_WH_RIGHT | ||
78 | ) | ||
79 | }; | ||
80 | |||
81 | LEADER_EXTERNS(); | ||
82 | |||
83 | void matrix_scan_user(void) { | ||
84 | LEADER_DICTIONARY() { | ||
85 | leading = false; | ||
86 | leader_end(); | ||
87 | |||
88 | // qq, alt+f4 close window | ||
89 | SEQ_TWO_KEYS(KC_Q, KC_Q) { | ||
90 | tap_code16(A(KC_F4)); | ||
91 | } | ||
92 | |||
93 | // ee, open explorer | ||
94 | SEQ_TWO_KEYS(KC_E, KC_E) { | ||
95 | tap_code16(G(KC_E)); | ||
96 | } | ||
97 | |||
98 | // rr, windows run prompt | ||
99 | SEQ_TWO_KEYS(KC_R, KC_R) { | ||
100 | tap_code16(G(KC_R)); | ||
101 | } | ||
102 | |||
103 | // ww, maximize window | ||
104 | SEQ_TWO_KEYS(KC_W, KC_W) { | ||
105 | tap_code16(G(KC_UP)); | ||
106 | } | ||
107 | |||
108 | // ss, minimize window | ||
109 | SEQ_TWO_KEYS(KC_S, KC_S) { | ||
110 | tap_code16(G(KC_DOWN)); | ||
111 | } | ||
112 | |||
113 | // <space><space>, toggle desktop | ||
114 | SEQ_TWO_KEYS(KC_SPC, KC_SPC) { | ||
115 | tap_code16(G(KC_D)); | ||
116 | } | ||
117 | } | ||
118 | } | ||
119 | |||
120 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
121 | uint8_t layer = get_highest_layer(layer_state); | ||
122 | if (index == 0) { | ||
123 | if (clockwise) { | ||
124 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 1)); | ||
125 | } else { | ||
126 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); | ||
127 | } | ||
128 | } | ||
129 | return true; | ||
130 | } | ||
diff --git a/keyboards/7c8/framework/keymaps/steven/readme.md b/keyboards/7c8/framework/keymaps/steven/readme.md new file mode 100644 index 000000000..c300961c7 --- /dev/null +++ b/keyboards/7c8/framework/keymaps/steven/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # Steven's Framework layout | ||
2 | |||
3 | This is a VIA compatible layout, exactly like the default VIA keymap, but with some leader key sequences that I find convenient. \ No newline at end of file | ||
diff --git a/keyboards/7c8/framework/keymaps/steven/rules.mk b/keyboards/7c8/framework/keymaps/steven/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/7c8/framework/keymaps/steven/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/7c8/framework/keymaps/via/config.h b/keyboards/7c8/framework/keymaps/via/config.h new file mode 100644 index 000000000..2dfd41f7c --- /dev/null +++ b/keyboards/7c8/framework/keymaps/via/config.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2020 Steven Nguyen | ||
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 | /* VIA specific defines to increase dynamic layer count */ | ||
18 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 3 | ||
19 | #define DYNAMIC_KEYMAP_LAYER_COUNT 5 | ||
20 | |||
21 | /* defining an extra row for encoder assignment in VIA */ | ||
22 | #undef MATRIX_ROWS | ||
23 | #define MATRIX_ROWS 11 \ No newline at end of file | ||
diff --git a/keyboards/7c8/framework/keymaps/via/keymap.c b/keyboards/7c8/framework/keymaps/via/keymap.c new file mode 100644 index 000000000..2fc572b4d --- /dev/null +++ b/keyboards/7c8/framework/keymaps/via/keymap.c | |||
@@ -0,0 +1,91 @@ | |||
1 | /* Copyright 2020 Steven Nguyen | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | enum framework_layers { | ||
20 | _BASE, | ||
21 | _LOWER, | ||
22 | _RAISE, | ||
23 | _BOTH, | ||
24 | _FN | ||
25 | }; | ||
26 | |||
27 | enum framework_keycodes { | ||
28 | LOWER = SAFE_RANGE, | ||
29 | RAISE, | ||
30 | BOTH, | ||
31 | FN | ||
32 | }; | ||
33 | |||
34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
35 | [_BASE] = framework_via( | ||
36 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MEDIA_PLAY_PAUSE, | ||
37 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
38 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
39 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
40 | KC_LCTL, KC_LGUI, KC_LALT, MO(_FN), MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, | ||
41 | KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP | ||
42 | ), | ||
43 | |||
44 | [_LOWER] = framework_via( | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
46 | _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, | ||
47 | KC_DEL, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, _______, _______, _______, _______, | ||
48 | _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, | ||
49 | _______, _______, _______, _______, _______, _______, _______, MO(_BOTH), KC_HOME, KC_PGDN, KC_PGUP, KC_END, | ||
50 | C(S(KC_TAB)), C(KC_TAB) | ||
51 | ), | ||
52 | |||
53 | [_RAISE] = framework_via( | ||
54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
55 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
58 | _______, _______, _______, _______, MO(_BOTH), _______, _______, _______, _______, _______, _______, _______, | ||
59 | C(KC_LEFT), C(KC_RIGHT) | ||
60 | ), | ||
61 | |||
62 | [_BOTH] = framework_via( | ||
63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, EEP_RST, DEBUG, | ||
68 | C(KC_Z), C(KC_Y) | ||
69 | ), | ||
70 | |||
71 | [_FN] = framework_via( | ||
72 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
74 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
76 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
77 | KC_MS_WH_LEFT, KC_MS_WH_RIGHT | ||
78 | ) | ||
79 | }; | ||
80 | |||
81 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
82 | uint8_t layer = get_highest_layer(layer_state); | ||
83 | if (index == 0) { | ||
84 | if (clockwise) { | ||
85 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 1)); | ||
86 | } else { | ||
87 | tap_code16(dynamic_keymap_get_keycode(layer, 10, 0)); | ||
88 | } | ||
89 | } | ||
90 | return true; | ||
91 | } | ||
diff --git a/keyboards/7c8/framework/keymaps/via/rules.mk b/keyboards/7c8/framework/keymaps/via/rules.mk new file mode 100644 index 000000000..990528315 --- /dev/null +++ b/keyboards/7c8/framework/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LEADER_ENABLE = no | ||