aboutsummaryrefslogtreecommitdiff
path: root/keyboards/preonic/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/preonic/keymaps')
-rw-r--r--keyboards/preonic/keymaps/AlexDaigre/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/cranium/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/default/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/drasbeck/keymap.c9
-rw-r--r--keyboards/preonic/keymaps/elisiano/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/fsck/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/keelhauler/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/kjwon15/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/laurentlaurent/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/mguterl/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/mikethetiger/keymap.c17
-rw-r--r--keyboards/preonic/keymaps/muzfuz/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/mverteuil/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/pezhore/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/senseored/keymap.c21
-rw-r--r--keyboards/preonic/keymaps/via/keymap.c3
-rw-r--r--keyboards/preonic/keymaps/xulkal/keymap.c3
18 files changed, 55 insertions, 37 deletions
diff --git a/keyboards/preonic/keymaps/AlexDaigre/keymap.c b/keyboards/preonic/keymaps/AlexDaigre/keymap.c
index 67d13005c..3ea61a26e 100644
--- a/keyboards/preonic/keymaps/AlexDaigre/keymap.c
+++ b/keyboards/preonic/keymaps/AlexDaigre/keymap.c
@@ -249,7 +249,7 @@ uint16_t muse_counter = 0;
249uint8_t muse_offset = 70; 249uint8_t muse_offset = 70;
250uint16_t muse_tempo = 50; 250uint16_t muse_tempo = 50;
251 251
252void encoder_update_user(uint8_t index, bool clockwise) { 252bool encoder_update_user(uint8_t index, bool clockwise) {
253 if (muse_mode) { 253 if (muse_mode) {
254 if (IS_LAYER_ON(_RAISE)) { 254 if (IS_LAYER_ON(_RAISE)) {
255 if (clockwise) { 255 if (clockwise) {
@@ -273,6 +273,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
273 unregister_code(KC_PGUP); 273 unregister_code(KC_PGUP);
274 } 274 }
275 } 275 }
276 return true;
276} 277}
277 278
278void dip_switch_update_user(uint8_t index, bool active) { 279void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/cranium/keymap.c b/keyboards/preonic/keymaps/cranium/keymap.c
index d640ff849..63897d1e6 100644
--- a/keyboards/preonic/keymaps/cranium/keymap.c
+++ b/keyboards/preonic/keymaps/cranium/keymap.c
@@ -150,7 +150,7 @@ uint16_t muse_counter = 0;
150uint8_t muse_offset = 70; 150uint8_t muse_offset = 70;
151uint16_t muse_tempo = 50; 151uint16_t muse_tempo = 50;
152 152
153void encoder_update_user(uint8_t index, bool clockwise) { 153bool encoder_update_user(uint8_t index, bool clockwise) {
154 if (muse_mode) { 154 if (muse_mode) {
155 if (IS_LAYER_ON(_RAISE)) { 155 if (IS_LAYER_ON(_RAISE)) {
156 if (clockwise) { 156 if (clockwise) {
@@ -172,6 +172,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
172 tap_code(KC_PGUP); 172 tap_code(KC_PGUP);
173 } 173 }
174 } 174 }
175 return true;
175} 176}
176 177
177void dip_update(uint8_t index, bool active) { 178void dip_update(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/default/keymap.c b/keyboards/preonic/keymaps/default/keymap.c
index 6fec14d4f..078ab2726 100644
--- a/keyboards/preonic/keymaps/default/keymap.c
+++ b/keyboards/preonic/keymaps/default/keymap.c
@@ -233,7 +233,7 @@ uint16_t muse_counter = 0;
233uint8_t muse_offset = 70; 233uint8_t muse_offset = 70;
234uint16_t muse_tempo = 50; 234uint16_t muse_tempo = 50;
235 235
236void encoder_update_user(uint8_t index, bool clockwise) { 236bool encoder_update_user(uint8_t index, bool clockwise) {
237 if (muse_mode) { 237 if (muse_mode) {
238 if (IS_LAYER_ON(_RAISE)) { 238 if (IS_LAYER_ON(_RAISE)) {
239 if (clockwise) { 239 if (clockwise) {
@@ -257,6 +257,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
257 unregister_code(KC_PGUP); 257 unregister_code(KC_PGUP);
258 } 258 }
259 } 259 }
260 return true;
260} 261}
261 262
262void dip_switch_update_user(uint8_t index, bool active) { 263void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/drasbeck/keymap.c b/keyboards/preonic/keymaps/drasbeck/keymap.c
index d2d30ffa1..909e86a97 100644
--- a/keyboards/preonic/keymaps/drasbeck/keymap.c
+++ b/keyboards/preonic/keymaps/drasbeck/keymap.c
@@ -1,4 +1,4 @@
1/* Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) 2020 Max Drasbeck 1/* Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) 2020 Max Drasbeck
2 * 2 *
3 * You are free to: 3 * You are free to:
4 * 4 *
@@ -44,8 +44,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, 44 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
45 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, 45 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL,
46 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, 46 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
47 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, 47 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
48 BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT 48 BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
49), 49),
50 50
51[_DVORAK] = LAYOUT_preonic_grid( 51[_DVORAK] = LAYOUT_preonic_grid(
@@ -163,7 +163,7 @@ uint16_t muse_counter = 0;
163uint8_t muse_offset = 70; 163uint8_t muse_offset = 70;
164uint16_t muse_tempo = 50; 164uint16_t muse_tempo = 50;
165 165
166void encoder_update_user(uint8_t index, bool clockwise) { 166bool encoder_update_user(uint8_t index, bool clockwise) {
167 if (muse_mode) { 167 if (muse_mode) {
168 if (IS_LAYER_ON(_RAISE)) { 168 if (IS_LAYER_ON(_RAISE)) {
169 if (clockwise) { 169 if (clockwise) {
@@ -187,6 +187,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
187 unregister_code(KC_PGUP); 187 unregister_code(KC_PGUP);
188 } 188 }
189 } 189 }
190 return true;
190} 191}
191 192
192void dip_switch_update_user(uint8_t index, bool active) { 193void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/elisiano/keymap.c b/keyboards/preonic/keymaps/elisiano/keymap.c
index a4e78d015..8d3898922 100644
--- a/keyboards/preonic/keymaps/elisiano/keymap.c
+++ b/keyboards/preonic/keymaps/elisiano/keymap.c
@@ -232,7 +232,7 @@ uint16_t muse_counter = 0;
232uint8_t muse_offset = 70; 232uint8_t muse_offset = 70;
233uint16_t muse_tempo = 50; 233uint16_t muse_tempo = 50;
234 234
235void encoder_update_user(uint8_t index, bool clockwise) { 235bool encoder_update_user(uint8_t index, bool clockwise) {
236 if (muse_mode) { 236 if (muse_mode) {
237 if (IS_LAYER_ON(_RAISE)) { 237 if (IS_LAYER_ON(_RAISE)) {
238 if (clockwise) { 238 if (clockwise) {
@@ -254,6 +254,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
254 tap_code(KC_PGUP); 254 tap_code(KC_PGUP);
255 } 255 }
256 } 256 }
257 return true;
257} 258}
258 259
259void dip_switch_update_user(uint8_t index, bool active) { 260void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/fsck/keymap.c b/keyboards/preonic/keymaps/fsck/keymap.c
index 97a0ed608..8e2747f44 100644
--- a/keyboards/preonic/keymaps/fsck/keymap.c
+++ b/keyboards/preonic/keymaps/fsck/keymap.c
@@ -175,7 +175,7 @@ uint16_t muse_counter = 0;
175uint8_t muse_offset = 70; 175uint8_t muse_offset = 70;
176uint16_t muse_tempo = 50; 176uint16_t muse_tempo = 50;
177 177
178void encoder_update_user(uint8_t index, bool clockwise) { 178bool encoder_update_user(uint8_t index, bool clockwise) {
179 if (muse_mode) { 179 if (muse_mode) {
180 if (IS_LAYER_ON(_RAISE)) { 180 if (IS_LAYER_ON(_RAISE)) {
181 if (clockwise) { 181 if (clockwise) {
@@ -199,6 +199,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
199 unregister_code(KC_PGUP); 199 unregister_code(KC_PGUP);
200 } 200 }
201 } 201 }
202 return true;
202} 203}
203 204
204void dip_update(uint8_t index, bool active) { 205void dip_update(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/keelhauler/keymap.c b/keyboards/preonic/keymaps/keelhauler/keymap.c
index e83e40dfc..c7e076692 100644
--- a/keyboards/preonic/keymaps/keelhauler/keymap.c
+++ b/keyboards/preonic/keymaps/keelhauler/keymap.c
@@ -237,7 +237,7 @@ uint16_t muse_counter = 0;
237uint8_t muse_offset = 70; 237uint8_t muse_offset = 70;
238uint16_t muse_tempo = 50; 238uint16_t muse_tempo = 50;
239 239
240void encoder_update_user(uint8_t index, bool clockwise) { 240bool encoder_update_user(uint8_t index, bool clockwise) {
241 if (muse_mode) { 241 if (muse_mode) {
242 if (IS_LAYER_ON(_RAISE)) { 242 if (IS_LAYER_ON(_RAISE)) {
243 if (clockwise) { 243 if (clockwise) {
@@ -261,6 +261,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
261 unregister_code(KC_PGUP); 261 unregister_code(KC_PGUP);
262 } 262 }
263 } 263 }
264 return true;
264} 265}
265 266
266void dip_switch_update_user(uint8_t index, bool active) { 267void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/kjwon15/keymap.c b/keyboards/preonic/keymaps/kjwon15/keymap.c
index 11ea0e51c..6f1d5f30a 100644
--- a/keyboards/preonic/keymaps/kjwon15/keymap.c
+++ b/keyboards/preonic/keymaps/kjwon15/keymap.c
@@ -302,7 +302,7 @@ uint16_t muse_counter = 0;
302uint8_t muse_offset = 70; 302uint8_t muse_offset = 70;
303uint16_t muse_tempo = 50; 303uint16_t muse_tempo = 50;
304 304
305void encoder_update_user(uint8_t index, bool clockwise) { 305bool encoder_update_user(uint8_t index, bool clockwise) {
306 if (muse_mode) { 306 if (muse_mode) {
307 if (IS_LAYER_ON(_RAISE)) { 307 if (IS_LAYER_ON(_RAISE)) {
308 if (clockwise) { 308 if (clockwise) {
@@ -324,6 +324,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
324 tap_code(KC_PGUP); 324 tap_code(KC_PGUP);
325 } 325 }
326 } 326 }
327 return true;
327} 328}
328 329
329void dip_switch_update_user(uint8_t index, bool active) { 330void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/laurentlaurent/keymap.c b/keyboards/preonic/keymaps/laurentlaurent/keymap.c
index c113bcaf6..b1a73035b 100644
--- a/keyboards/preonic/keymaps/laurentlaurent/keymap.c
+++ b/keyboards/preonic/keymaps/laurentlaurent/keymap.c
@@ -529,7 +529,7 @@ uint16_t muse_counter = 0;
529uint8_t muse_offset = 70; 529uint8_t muse_offset = 70;
530uint16_t muse_tempo = 50; 530uint16_t muse_tempo = 50;
531 531
532void encoder_update_user(uint8_t index, bool clockwise) { 532bool encoder_update_user(uint8_t index, bool clockwise) {
533 if (muse_mode) { 533 if (muse_mode) {
534 if (IS_LAYER_ON(_RAISE)) { 534 if (IS_LAYER_ON(_RAISE)) {
535 if (clockwise) { 535 if (clockwise) {
@@ -551,6 +551,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
551 tap_code(KC_PGUP); 551 tap_code(KC_PGUP);
552 } 552 }
553 } 553 }
554 return true;
554} 555}
555 556
556void dip_switch_update_user(uint8_t index, bool active) { 557void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/mguterl/keymap.c b/keyboards/preonic/keymaps/mguterl/keymap.c
index ecaf26b8d..4e8738be2 100644
--- a/keyboards/preonic/keymaps/mguterl/keymap.c
+++ b/keyboards/preonic/keymaps/mguterl/keymap.c
@@ -240,7 +240,7 @@ uint16_t muse_counter = 0;
240uint8_t muse_offset = 70; 240uint8_t muse_offset = 70;
241uint16_t muse_tempo = 50; 241uint16_t muse_tempo = 50;
242 242
243void encoder_update_user(uint8_t index, bool clockwise) { 243bool encoder_update_user(uint8_t index, bool clockwise) {
244 if (muse_mode) { 244 if (muse_mode) {
245 if (IS_LAYER_ON(_RAISE)) { 245 if (IS_LAYER_ON(_RAISE)) {
246 if (clockwise) { 246 if (clockwise) {
@@ -270,6 +270,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
270 #endif 270 #endif
271 } 271 }
272 } 272 }
273 return true;
273} 274}
274 275
275void dip_switch_update_user(uint8_t index, bool active) { 276void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/mikethetiger/keymap.c b/keyboards/preonic/keymaps/mikethetiger/keymap.c
index 621148a6b..e4b1f2e82 100644
--- a/keyboards/preonic/keymaps/mikethetiger/keymap.c
+++ b/keyboards/preonic/keymaps/mikethetiger/keymap.c
@@ -50,7 +50,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | 50 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
51 * `-----------------------------------------------------------------------------------' 51 * `-----------------------------------------------------------------------------------'
52 */ 52 */
53[_QWERTY] = LAYOUT_preonic_grid( 53[_QWERTY] = LAYOUT_preonic_grid(
54 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ 54 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
55 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, \ 55 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, \
56 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ 56 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
@@ -71,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
71 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | 71 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
72 * `-----------------------------------------------------------------------------------' 72 * `-----------------------------------------------------------------------------------'
73 */ 73 */
74[_COLEMAK] = LAYOUT_preonic_grid( 74[_COLEMAK] = LAYOUT_preonic_grid(
75 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ 75 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
76 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, \ 76 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, \
77 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \ 77 KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \
@@ -92,7 +92,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
92 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | 92 * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
93 * `-----------------------------------------------------------------------------------' 93 * `-----------------------------------------------------------------------------------'
94 */ 94 */
95[_DVORAK] = LAYOUT_preonic_grid( 95[_DVORAK] = LAYOUT_preonic_grid(
96 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ 96 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
97 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \ 97 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \
98 KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \ 98 KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \
@@ -113,7 +113,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
113 * | | | | | | | | Next | Vol- | Vol+ | Play | 113 * | | | | | | | | Next | Vol- | Vol+ | Play |
114 * `-----------------------------------------------------------------------------------' 114 * `-----------------------------------------------------------------------------------'
115 */ 115 */
116[_LOWER] = LAYOUT_preonic_grid( 116[_LOWER] = LAYOUT_preonic_grid(
117 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ 117 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \
118 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ 118 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
119 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ 119 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
@@ -134,7 +134,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
134 * | | | | | | | | Next | Vol- | Vol+ | Play | 134 * | | | | | | | | Next | Vol- | Vol+ | Play |
135 * `-----------------------------------------------------------------------------------' 135 * `-----------------------------------------------------------------------------------'
136 */ 136 */
137[_RAISE] = LAYOUT_preonic_grid( 137[_RAISE] = LAYOUT_preonic_grid(
138 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ 138 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
139 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ 139 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
140 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ 140 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
@@ -155,7 +155,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
155 * | | | | | | | | | | | | 155 * | | | | | | | | | | | |
156 * `-----------------------------------------------------------------------------------' 156 * `-----------------------------------------------------------------------------------'
157 */ 157 */
158[_ADJUST] = LAYOUT_preonic_grid( 158[_ADJUST] = LAYOUT_preonic_grid(
159 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ 159 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
160 _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, \ 160 _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, \
161 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ 161 _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \
@@ -233,13 +233,14 @@ uint16_t muse_counter = 0;
233uint8_t muse_offset = 70; 233uint8_t muse_offset = 70;
234uint16_t muse_tempo = 50; 234uint16_t muse_tempo = 50;
235 235
236void encoder_update_user(uint8_t index, bool clockwise) { 236bool encoder_update_user(uint8_t index, bool clockwise) {
237 if (clockwise) { 237 if (clockwise) {
238 tap_code(KC_VOLU); 238 tap_code(KC_VOLU);
239 } else { 239 } else {
240 tap_code(KC_VOLD); 240 tap_code(KC_VOLD);
241 } 241 }
242 } 242 return true;
243}
243 244
244void dip_update(uint8_t index, bool active) { 245void dip_update(uint8_t index, bool active) {
245 switch (index) { 246 switch (index) {
diff --git a/keyboards/preonic/keymaps/muzfuz/keymap.c b/keyboards/preonic/keymaps/muzfuz/keymap.c
index a0a4b34fa..a72894677 100644
--- a/keyboards/preonic/keymaps/muzfuz/keymap.c
+++ b/keyboards/preonic/keymaps/muzfuz/keymap.c
@@ -197,7 +197,7 @@ uint16_t muse_counter = 0;
197uint8_t muse_offset = 70; 197uint8_t muse_offset = 70;
198uint16_t muse_tempo = 50; 198uint16_t muse_tempo = 50;
199 199
200void encoder_update(bool clockwise) { 200bool encoder_update(bool clockwise) {
201 if (muse_mode) { 201 if (muse_mode) {
202 if (IS_LAYER_ON(_RAISE)) { 202 if (IS_LAYER_ON(_RAISE)) {
203 if (clockwise) { 203 if (clockwise) {
@@ -221,6 +221,7 @@ void encoder_update(bool clockwise) {
221 unregister_code(KC_PGUP); 221 unregister_code(KC_PGUP);
222 } 222 }
223 } 223 }
224 return true;
224} 225}
225 226
226void dip_update(uint8_t index, bool active) { 227void dip_update(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/mverteuil/keymap.c b/keyboards/preonic/keymaps/mverteuil/keymap.c
index 621d60be6..60677701c 100644
--- a/keyboards/preonic/keymaps/mverteuil/keymap.c
+++ b/keyboards/preonic/keymaps/mverteuil/keymap.c
@@ -434,7 +434,7 @@ uint16_t muse_counter = 0;
434uint8_t muse_offset = 70; 434uint8_t muse_offset = 70;
435uint16_t muse_tempo = 50; 435uint16_t muse_tempo = 50;
436 436
437void encoder_update_user(uint8_t index, bool clockwise) { 437bool encoder_update_user(uint8_t index, bool clockwise) {
438 if (muse_mode) { 438 if (muse_mode) {
439 if (IS_LAYER_ON(_RAISE)) { 439 if (IS_LAYER_ON(_RAISE)) {
440 if (clockwise) { 440 if (clockwise) {
@@ -456,6 +456,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
456 tap_code(KC_PGUP); 456 tap_code(KC_PGUP);
457 } 457 }
458 } 458 }
459 return true;
459} 460}
460 461
461void dip_switch_update_user(uint8_t index, bool active) { 462void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
index 232b85311..290ea1638 100644
--- a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
+++ b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
@@ -370,7 +370,7 @@ uint16_t muse_counter = 0;
370uint8_t muse_offset = 70; 370uint8_t muse_offset = 70;
371uint16_t muse_tempo = 50; 371uint16_t muse_tempo = 50;
372 372
373void encoder_update_user(uint8_t index, bool clockwise) { 373bool encoder_update_user(uint8_t index, bool clockwise) {
374 if (muse_mode) { 374 if (muse_mode) {
375 if (IS_LAYER_ON(_RAISE)) { 375 if (IS_LAYER_ON(_RAISE)) {
376 if (clockwise) { 376 if (clockwise) {
@@ -392,6 +392,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
392 tap_code(KC_PGUP); 392 tap_code(KC_PGUP);
393 } 393 }
394 } 394 }
395 return true;
395} 396}
396 397
397void dip_switch_update_user(uint8_t index, bool active) { 398void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/pezhore/keymap.c b/keyboards/preonic/keymaps/pezhore/keymap.c
index 39b045d6d..71d9306dc 100644
--- a/keyboards/preonic/keymaps/pezhore/keymap.c
+++ b/keyboards/preonic/keymaps/pezhore/keymap.c
@@ -232,7 +232,7 @@ uint16_t muse_counter = 0;
232uint8_t muse_offset = 70; 232uint8_t muse_offset = 70;
233uint16_t muse_tempo = 50; 233uint16_t muse_tempo = 50;
234 234
235void encoder_update_user(uint8_t index, bool clockwise) { 235bool encoder_update_user(uint8_t index, bool clockwise) {
236 if (muse_mode) { 236 if (muse_mode) {
237 if (IS_LAYER_ON(_RAISE)) { 237 if (IS_LAYER_ON(_RAISE)) {
238 if (clockwise) { 238 if (clockwise) {
@@ -254,6 +254,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
254 tap_code(KC_PGUP); 254 tap_code(KC_PGUP);
255 } 255 }
256 } 256 }
257 return true;
257} 258}
258 259
259void dip_switch_update_user(uint8_t index, bool active) { 260void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/senseored/keymap.c b/keyboards/preonic/keymaps/senseored/keymap.c
index 6ddf28942..c78528d8c 100644
--- a/keyboards/preonic/keymaps/senseored/keymap.c
+++ b/keyboards/preonic/keymaps/senseored/keymap.c
@@ -25,7 +25,7 @@ enum preonic_layers {
25 _FNL2, 25 _FNL2,
26 _ADJUST, 26 _ADJUST,
27 _GAMEMODE, 27 _GAMEMODE,
28 _FNL3, 28 _FNL3,
29 _LOWER2, 29 _LOWER2,
30 _RAISE2 30 _RAISE2
31}; 31};
@@ -236,7 +236,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
236/* Raise 236/* Raise
237 * ,-----------------------------------------------------------------------------------. 237 * ,-----------------------------------------------------------------------------------.
238 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | 238 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
239 * |------+------+------+------+------+------+------+------+------+------+------+------| 239 * |------+------+------+------+------+------+------+------+------+------+------+------|
240 * | § | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | 240 * | § | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + |
241 * |------+------+------+------+------+-------------+------+------+------+------+------| 241 * |------+------+------+------+------+-------------+------+------+------+------+------|
242 * | ´ | ` | @ | £ | $ | € | ¨ | { | [ | ] | } | \ | 242 * | ´ | ` | @ | £ | $ | € | ¨ | { | [ | ] | } | \ |
@@ -271,7 +271,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
271 //SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P1) SS_TAP(X_P7) SS_TAP(X_P6) SS_UP(X_LALT)); 271 //SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P1) SS_TAP(X_P7) SS_TAP(X_P6) SS_UP(X_LALT));
272 SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_KP_0) SS_TAP(X_KP_1) SS_TAP(X_KP_7) SS_TAP(X_KP_6) SS_UP(X_LALT) ); 272 SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_KP_0) SS_TAP(X_KP_1) SS_TAP(X_KP_7) SS_TAP(X_KP_6) SS_UP(X_LALT) );
273 return false; 273 return false;
274 274
275 if(bnumlock) { 275 if(bnumlock) {
276 tap_code(KC_NLCK); 276 tap_code(KC_NLCK);
277 bnumlock = false; 277 bnumlock = false;
@@ -283,14 +283,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
283 } 283 }
284 else { 284 else {
285 workmode = false; 285 workmode = false;
286 return false; 286 return false;
287 } 287 }
288 } 288 }
289 289
290 } 290 }
291 return true; 291 return true;
292 switch (keycode) { 292 switch (keycode) {
293 293
294 case BACKLIT: 294 case BACKLIT:
295 if (record->event.pressed) { 295 if (record->event.pressed) {
296 register_code(KC_RSFT); 296 register_code(KC_RSFT);
@@ -318,7 +318,7 @@ uint16_t muse_counter = 0;
318uint8_t muse_offset = 70; 318uint8_t muse_offset = 70;
319uint16_t muse_tempo = 50; 319uint16_t muse_tempo = 50;
320 320
321void encoder_update_user(uint8_t index, bool clockwise) { 321bool encoder_update_user(uint8_t index, bool clockwise) {
322 if (muse_mode) { 322 if (muse_mode) {
323 if (IS_LAYER_ON(_RAISE)) { 323 if (IS_LAYER_ON(_RAISE)) {
324 if (clockwise) { 324 if (clockwise) {
@@ -342,6 +342,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
342 unregister_code(KC_PGUP); 342 unregister_code(KC_PGUP);
343 } 343 }
344 } 344 }
345 return true;
345} 346}
346 347
347void dip_switch_update_user(uint8_t index, bool active) { 348void dip_switch_update_user(uint8_t index, bool active) {
@@ -375,7 +376,7 @@ uint32_t layer_state_set_user(uint32_t state) {
375 if(!bnumlock) { 376 if(!bnumlock) {
376 tap_code(KC_NLCK); 377 tap_code(KC_NLCK);
377 } 378 }
378 379
379 break; 380 break;
380 case _ADJUST: 381 case _ADJUST:
381 if(bnumlock) { 382 if(bnumlock) {
@@ -398,7 +399,7 @@ uint32_t layer_state_set_user(uint32_t state) {
398 if(bnumlock) { 399 if(bnumlock) {
399 tap_code(KC_NLCK); 400 tap_code(KC_NLCK);
400 } 401 }
401 402
402 break; 403 break;
403 } 404 }
404 // } 405 // }
diff --git a/keyboards/preonic/keymaps/via/keymap.c b/keyboards/preonic/keymaps/via/keymap.c
index 04f20b316..5df57fd3d 100644
--- a/keyboards/preonic/keymaps/via/keymap.c
+++ b/keyboards/preonic/keymaps/via/keymap.c
@@ -120,7 +120,7 @@ uint16_t muse_counter = 0;
120uint8_t muse_offset = 70; 120uint8_t muse_offset = 70;
121uint16_t muse_tempo = 50; 121uint16_t muse_tempo = 50;
122 122
123void encoder_update_user(uint8_t index, bool clockwise) { 123bool encoder_update_user(uint8_t index, bool clockwise) {
124 if (muse_mode) { 124 if (muse_mode) {
125 if (IS_LAYER_ON(_RAISE)) { 125 if (IS_LAYER_ON(_RAISE)) {
126 if (clockwise) { 126 if (clockwise) {
@@ -144,6 +144,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
144 unregister_code(KC_PGUP); 144 unregister_code(KC_PGUP);
145 } 145 }
146 } 146 }
147 return true;
147} 148}
148 149
149void dip_switch_update_user(uint8_t index, bool active) { 150void dip_switch_update_user(uint8_t index, bool active) {
diff --git a/keyboards/preonic/keymaps/xulkal/keymap.c b/keyboards/preonic/keymaps/xulkal/keymap.c
index 967cd5a0a..f127ea469 100644
--- a/keyboards/preonic/keymaps/xulkal/keymap.c
+++ b/keyboards/preonic/keymaps/xulkal/keymap.c
@@ -74,7 +74,7 @@ uint16_t muse_counter = 0;
74uint8_t muse_offset = 70; 74uint8_t muse_offset = 70;
75uint16_t muse_tempo = 50; 75uint16_t muse_tempo = 50;
76 76
77void encoder_update_user(uint8_t index, bool clockwise) { 77bool encoder_update_user(uint8_t index, bool clockwise) {
78 if (muse_mode) { 78 if (muse_mode) {
79 if (IS_LAYER_ON(_RAISE)) { 79 if (IS_LAYER_ON(_RAISE)) {
80 if (clockwise) { 80 if (clockwise) {
@@ -98,6 +98,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
98 unregister_code(KC_PGUP); 98 unregister_code(KC_PGUP);
99 } 99 }
100 } 100 }
101 return true;
101} 102}
102 103
103void dip_update(uint8_t index, bool active) { 104void dip_update(uint8_t index, bool active) {