From 4a854711a757094803479025ccba46831fa75e00 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 16:08:19 +0200
Subject: [PATCH 01/10] Add fr version of my keymap for sofle keyboard
---
.../sofle/keymaps/Bastien-Baloup_FR/config.h | 55 +++++
.../sofle/keymaps/Bastien-Baloup_FR/keymap.c | 207 ++++++++++++++++++
.../sofle/keymaps/Bastien-Baloup_FR/rules.mk | 11 +
3 files changed, 273 insertions(+)
create mode 100644 keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
create mode 100644 keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
create mode 100644 keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h b/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
new file mode 100644
index 000000000000..64309037d09f
--- /dev/null
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
@@ -0,0 +1,55 @@
+ /* Copyright 2020 Josef Adamcik
+ * Modification for VIA support and RGB underglow by Jens Bonk-Wiltfang
+ *
+ * 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 .
+ */
+
+#pragma once
+
+/* The way how "handedness" is decided (which half is which),
+see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
+for more options.
+*/
+
+// More lighting options in quantum/rgblight/rgblight.h
+#ifdef RGBLIGHT_ENABLE
+ // Disabling some of these is a good way to save flash space.
+// #define RGBLIGHT_EFFECT_ALTERNATING // 108
+// #define RGBLIGHT_EFFECT_RGB_TEST // 158
+// #define RGBLIGHT_EFFECT_RAINBOW_MOOD // 160
+// #define RGBLIGHT_EFFECT_STATIC_GRADIENT // 168
+ #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // 192
+// #define RGBLIGHT_EFFECT_BREATHING // 348
+// #define RGBLIGHT_EFFECT_KNIGHT // 336
+// #define RGBLIGHT_EFFECT_SNAKE // 406
+// #define RGBLIGHT_EFFECT_CHRISTMAS // 508
+// #define RGBLIGHT_EFFECT_TWINKLE // 1156
+
+ // Set default lighting option
+ #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
+ // Allow use of LEDs as modifier/layer indicators without disrupting animations.
+ #define RGBLIGHT_LAYERS
+#endif
+
+// Disabled to save space
+#define NO_ACTION_ONESHOT // 332
+#define NO_ACTION_MACRO // 0
+#define NO_ACTION_FUNCTION // 0
+#define DISABLE_LEADER // 0
+#define NO_MUSIC_MODE
+#undef LOCKING_SUPPORT_ENABLE
+#undef LOCKING_RESYNC_ENABLE
+
+// Limit the number of layers that the firmware can use to save space
+#define LAYER_STATE_8BIT
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
new file mode 100644
index 000000000000..71460ce4fb45
--- /dev/null
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
@@ -0,0 +1,207 @@
+ /* Copyright 2022 Bastien Baloup
+ * based on the work of Josef Adamcik, Jens Bonk-Wiltfang and Michal S. (@ihatethefrench)
+ *
+ * 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 .
+ */
+
+#include QMK_KEYBOARD_H
+
+enum custom_keycodes {
+ PLACEHOLDER = SAFE_RANGE, // can always be here (4 bytes)
+ // CL_ keycodes are here for charaters that need capslock on to be inputed.
+ CL_AGRV, // À
+ CL_EACU, // É
+ CL_EGRV, // È
+ // UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode. Should be replaced by alt+code for windows.
+ UC_PI , // π
+ UC_ELIP // …
+};
+
+// Following keymaps are made for the french ISO keyboard layout
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/*
+ * LOWERcase
+ * ,-----------------------------------------. ,-----------------------------------------.
+ * | ² | & | é | " | ' | _^ | | _¨ | è | % | ç | à |TGUtil|
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | ESC | a | z | e | r | t | | y | u | i | o | p | Bspc |
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | Tab | q | s | d | f | g |-------. ,-------| h | j | k | l | m | ù |
+ * |------+------+------+------+------+------| | | Mute |------+------+------+------+------+------|
+ * |UPPER | w | x | c | v | b |-------| |-------| n | , | ; | : | ! | UPPER|
+ * `-----------------------------------------/ / \ \-----------------------------------------'
+ * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | | | | |/ / \ \ | | | | |
+ * `-----------------------------------' '------''---------------------------'
+ */
+
+[0] = LAYOUT(
+ KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_LBRC, S(KC_LBRC), KC_7 , S(KC_QUOT), KC_9 , KC_0 , TG(3) ,
+ KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC,
+ KC_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT,
+ MO(1) , KC_Z , KC_X , KC_C , KC_V , KC_B , XXXXXXX, KC_MUTE, KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH, MO(1) ,
+ KC_LGUI, KC_LALT, KC_LCTRL, MO(2) , KC_ENT, KC_SPC, MO(3) , KC_RCTRL, KC_RALT, KC_HYPR
+),
+
+/*
+ * UPPERcase
+ * ,-----------------------------------------. ,-----------------------------------------.
+ * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |TGUtil|
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | ESC | A | Z | E | R | T | | Y | U | I | O | P | Bspc |
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | TAB | Q | S | D | F | G |-------. ,-------| H | J | K | L | M | µ |
+ * |------+------+------+------+------+------| | | Mute |------+------+------+------+------+------|
+ * |UPPER | W | X | C | V | B |-------| |-------| N | ? | . | / | § | UPPER|
+ * `-----------------------------------------/ / \ \-----------------------------------------'
+ * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | | | | |/ / \ \ | | | | |
+ * `-----------------------------------' '------''---------------------------'
+ */
+[1] = LAYOUT(
+ _______, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6) , S(KC_7), S(KC_8) , S(KC_9) , S(KC_0) , _______ ,
+ _______, S(KC_Q), S(KC_W), S(KC_E), S(KC_R), S(KC_T), S(KC_Y) , S(KC_U), S(KC_I) , S(KC_O) , S(KC_P) , _______ ,
+ _______, S(KC_A), S(KC_S), S(KC_D), S(KC_F), S(KC_G), S(KC_H) , S(KC_J), S(KC_K) , S(KC_L) , S(KC_SCLN), S(KC_NUHS),
+ _______, S(KC_Z), S(KC_X), S(KC_C), S(KC_V), S(KC_B), _______, _______, S(KC_N) , S(KC_M), S(KC_COMM), S(KC_DOT), S(KC_SLSH), _______ ,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+),
+
+/* SYMBOLS
+ * ,-----------------------------------------. ,-----------------------------------------.
+ * | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | ESC | À | È | É | ( | ) | | = | | | \ | · | @ | Bspc |
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | Tab | ` | ~ | # | < | > |-------. ,-------| + | - | / | * | ° | … |
+ * |------+------+------+------+------+------| | | Play |------+------+------+------+------+------|
+ * | Shift| ¤ | [ | ] | { | } |-------| |-------| π | _ | € | $ | £ | Shift|
+ * `-----------------------------------------/ / \ \-----------------------------------------'
+ * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | | | | |/ / \ \ | | | | |
+ * `-----------------------------------' '------''---------------------------'
+ */
+[2] = LAYOUT(
+ KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 ,
+ _______, CL_AGRV , CL_EGRV , CL_EACU , KC_5 , KC_MINS , KC_EQL , ALGR(KC_6), ALGR(KC_8), ALGR(KC_COMM), ALGR(KC_0), _______,
+ _______, ALGR(KC_7) , ALGR(KC_2), ALGR(KC_3) , KC_NUBS , S(KC_NUBS) , S(KC_EQL), KC_6 , S(KC_DOT) , KC_NUHS , S(KC_MINS), UC_ELIP,
+ KC_LSFT, ALGR(KC_RBRC), ALGR(KC_5), ALGR(KC_MINS), ALGR(KC_4), ALGR(KC_EQL), _______, KC_MPLY, UC_PI , KC_8 , ALGR(KC_E), KC_RBRC , S(KC_RBRC), KC_RSFT,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+),
+/* UTILS
+ * ,----------------------------------------. ,-----------------------------------------.
+ * | | & | é | " | ( | _^ | | CLock|PScr |ScLock| Pause| Ins |TGUtil|
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | Esc | a | z | e | r | t | | PgUp | Home | Up | End | Del | Bspc |
+ * |------+------+------+------+------+------| |------+------+------+------+------+------|
+ * | Tab | q | s | d | f | g |-------. ,-------| PgDo | Left | Down | Rigth|CALeft|CARigt|
+ * |------+------+------+------+------+------| | | Play |------+------+------+------+------+------|
+ * |Shift | w | x | c | v | b |-------| |-------| | PWrd | | NWrd | Menu | Shift|
+ * `-----------------------------------------/ / \ \-----------------------------------------'
+ * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | | | | |/ / \ \ | | | | |
+ * `----------------------------------' '------''---------------------------'
+ */
+[3] = LAYOUT(
+ _______, _______, _______, _______, _______, _______, KC_CAPS, KC_PSCR , KC_SCRL, KC_PAUS , KC_INS , _______ ,
+ _______, _______, _______, _______, _______, _______, KC_PGUP, KC_HOME , KC_UP , KC_END , KC_DEL , _______ ,
+ _______, _______, _______, _______, _______, _______, KC_PGDN, KC_LEFT , KC_DOWN, KC_RGHT , C(A(KC_LEFT)), C(A(KC_RGHT)),
+ KC_LSFT, _______, _______, _______, _______, _______, _______, KC_MPLY, XXXXXXX, C(KC_LEFT), XXXXXXX, C(KC_RGHT), KC_MENU , KC_RSFT ,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+)
+};
+
+// Custom keycode handling.
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ // handling this once instead of in each keycode uses less program memory.
+ if ((keycode >= SAFE_RANGE) && !(record->event.pressed)) {
+ return false;
+ }
+
+ switch (keycode) {
+ case CL_AGRV:
+ SEND_STRING(SS_TAP(X_CAPS)"0"SS_TAP(X_CAPS));
+ break;
+ case CL_EACU:
+ SEND_STRING(SS_TAP(X_CAPS)"2"SS_TAP(X_CAPS));
+ break;
+ case CL_EGRV:
+ SEND_STRING(SS_TAP(X_CAPS)"7"SS_TAP(X_CAPS));
+ break;
+ case UC_PI:
+ tap_code16(LCTL(LSFT(KC_U)));
+ tap_code16(S(KC_3));
+ tap_code16(KC_C);
+ tap_code16(S(KC_0));
+ tap_code16(KC_ENT);
+ break;
+ case UC_ELIP:
+ tap_code16(LCTL(LSFT(KC_U)));
+ tap_code16(S(KC_2));
+ tap_code16(S(KC_0));
+ tap_code16(S(KC_2));
+ tap_code16(S(KC_6));
+ tap_code16(KC_ENT);
+ break;
+ }
+
+ // this uses less memory than returning in each case.
+ return keycode < SAFE_RANGE;
+};
+
+#ifdef ENCODER_ENABLE
+
+// This section is like the keymap matrix, but for rotary encoders
+// My left encoder is currently not working, so I'm using Layers to cope :')
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_VOLU, KC_VOLD)},
+ [1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_VOLU, KC_VOLD)},
+ [2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_MNXT, KC_MPRV)},
+ [3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_MNXT, KC_MPRV)},
+};
+
+#endif
+
+#ifdef RGBLIGHT_ENABLE
+
+const rgblight_segment_t PROGMEM rgb_layer_1[] = RGBLIGHT_LAYER_SEGMENTS(
+ {30, 6, HSV_TURQUOISE},
+ {38, 6, HSV_TURQUOISE}
+);
+const rgblight_segment_t PROGMEM rgb_layer_2[] = RGBLIGHT_LAYER_SEGMENTS(
+ {0, 73, HSV_TEAL}
+);
+const rgblight_segment_t PROGMEM rgb_layer_3[] = RGBLIGHT_LAYER_SEGMENTS(
+ {37, 36, HSV_PURPLE}
+);
+
+const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(
+ rgb_layer_1, // Overrides for layer 1
+ rgb_layer_2, // Overrides for layer 2
+ rgb_layer_3 // Overrides for layer 3
+);
+
+void keyboard_post_init_user(void) {
+ // Enable the LED layers
+ rgblight_layers = rgb_layers;
+}
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ rgblight_set_layer_state(0, layer_state_cmp(state, 1));
+ rgblight_set_layer_state(1, layer_state_cmp(state, 2));
+ rgblight_set_layer_state(2, layer_state_cmp(state, 3));
+ return state;
+}
+
+#endif
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk b/keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk
new file mode 100644
index 000000000000..78eeb8502015
--- /dev/null
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk
@@ -0,0 +1,11 @@
+VIA_ENABLE = no
+RGBLIGHT_ENABLE = yes
+EXTRAKEY_ENABLE = yes
+LTO_ENABLE = yes
+ENCODER_ENABLE = yes
+ENCODER_MAP_ENABLE = yes
+OLED_ENABLE = no
+CONSOLE_ENABLE = no
+COMMAND_ENABLE = no
+MOUSEKEY_ENABLE = no
+MUSIC_ENABLE = no
From e98cba23f144ac5aae76e0b23882f109be9697be Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 19:07:57 +0200
Subject: [PATCH 02/10] Improve comments
---
.../sofle/keymaps/Bastien-Baloup_FR/keymap.c | 52 ++++++++++++-------
1 file changed, 32 insertions(+), 20 deletions(-)
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
index 71460ce4fb45..64b53f3e7516 100644
--- a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
@@ -1,5 +1,4 @@
/* Copyright 2022 Bastien Baloup
- * based on the work of Josef Adamcik, Jens Bonk-Wiltfang and Michal S. (@ihatethefrench)
*
* 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
@@ -23,7 +22,8 @@ enum custom_keycodes {
CL_AGRV, // À
CL_EACU, // É
CL_EGRV, // È
- // UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode. Should be replaced by alt+code for windows.
+ // UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode.
+ // I do not use the qmk unicode implementation because it does not uses the right keycodes to input numbers in a french layout.
UC_PI , // π
UC_ELIP // …
};
@@ -34,15 +34,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* LOWERcase
* ,-----------------------------------------. ,-----------------------------------------.
- * | ² | & | é | " | ' | _^ | | _¨ | è | % | ç | à |TGUtil|
+ * | ² | & | é | " | ' | ^ | | ¨ | è | % | ç | à | TG3 |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ESC | a | z | e | r | t | | y | u | i | o | p | Bspc |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
- * | Tab | q | s | d | f | g |-------. ,-------| h | j | k | l | m | ù |
+ * | Tab | q | s | d | f | g |-------. ,-------| h | j | k | l | m | ù |
* |------+------+------+------+------+------| | | Mute |------+------+------+------+------+------|
- * |UPPER | w | x | c | v | b |-------| |-------| n | , | ; | : | ! | UPPER|
+ * | MO1 | w | x | c | v | b |-------| |-------| n | , | ; | : | ! | MO1 |
* `-----------------------------------------/ / \ \-----------------------------------------'
- * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | LGUI | LAlt | LCTR | MO2 | /Enter / \Space \ | MO3 | RCTR | RAlt | HYPER|
* | | | | |/ / \ \ | | | | |
* `-----------------------------------' '------''---------------------------'
*/
@@ -54,19 +54,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
MO(1) , KC_Z , KC_X , KC_C , KC_V , KC_B , XXXXXXX, KC_MUTE, KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH, MO(1) ,
KC_LGUI, KC_LALT, KC_LCTRL, MO(2) , KC_ENT, KC_SPC, MO(3) , KC_RCTRL, KC_RALT, KC_HYPR
),
-
+// I use a uppercase layer instead of using the Shift key because I find it easier to change the effect of shift+key chords this way.
/*
* UPPERcase
* ,-----------------------------------------. ,-----------------------------------------.
- * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |TGUtil|
+ * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | TG3 |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ESC | A | Z | E | R | T | | Y | U | I | O | P | Bspc |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
- * | TAB | Q | S | D | F | G |-------. ,-------| H | J | K | L | M | µ |
+ * | TAB | Q | S | D | F | G |-------. ,-------| H | J | K | L | M | µ |
* |------+------+------+------+------+------| | | Mute |------+------+------+------+------+------|
- * |UPPER | W | X | C | V | B |-------| |-------| N | ? | . | / | § | UPPER|
+ * | MO1 | W | X | C | V | B |-------| |-------| N | ? | . | / | § | MO1 |
* `-----------------------------------------/ / \ \-----------------------------------------'
- * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | LGUI | LAlt | LCTR | MO2 | /Enter / \Space \ | MO3 | RCTR | RAlt | HYPER|
* | | | | |/ / \ \ | | | | |
* `-----------------------------------' '------''---------------------------'
*/
@@ -78,17 +78,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
+// I replaced MO1 with the Shift key in the next layers to be able to use it for some shortcuts.
+
/* SYMBOLS
* ,-----------------------------------------. ,-----------------------------------------.
* | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ESC | À | È | É | ( | ) | | = | | | \ | · | @ | Bspc |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
- * | Tab | ` | ~ | # | < | > |-------. ,-------| + | - | / | * | ° | … |
+ * | Tab | ` | ~ | # | < | > |-------. ,-------| + | - | / | * | ° | … |
* |------+------+------+------+------+------| | | Play |------+------+------+------+------+------|
* | Shift| ¤ | [ | ] | { | } |-------| |-------| π | _ | € | $ | £ | Shift|
* `-----------------------------------------/ / \ \-----------------------------------------'
- * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | LGUI | LAlt | LCTR | MO2 | /Enter / \Space \ | MO3 | RCTR | RAlt | HYPER|~
* | | | | |/ / \ \ | | | | |
* `-----------------------------------' '------''---------------------------'
*/
@@ -101,7 +103,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
/* UTILS
* ,----------------------------------------. ,-----------------------------------------.
- * | | & | é | " | ( | _^ | | CLock|PScr |ScLock| Pause| Ins |TGUtil|
+ * | | & | é | " | ( | ^ | | CLock|PScr |ScLock| Pause| Ins | TG3 |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Esc | a | z | e | r | t | | PgUp | Home | Up | End | Del | Bspc |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
@@ -109,7 +111,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |------+------+------+------+------+------| | | Play |------+------+------+------+------+------|
* |Shift | w | x | c | v | b |-------| |-------| | PWrd | | NWrd | Menu | Shift|
* `-----------------------------------------/ / \ \-----------------------------------------'
- * | LGUI | LAlt | LCTR |SYMBOL| /Enter / \Space \ |UTILS | RCTR | RAlt | HYPER|
+ * | LGUI | LAlt | LCTR | MO2 | /Enter / \Space \ | MO3 | RCTR | RAlt | HYPER|
* | | | | |/ / \ \ | | | | |
* `----------------------------------' '------''---------------------------'
*/
@@ -131,15 +133,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case CL_AGRV:
+ // capsLockOn à capsLockOff
SEND_STRING(SS_TAP(X_CAPS)"0"SS_TAP(X_CAPS));
break;
case CL_EACU:
+ // capsLockOn é capsLockOff
SEND_STRING(SS_TAP(X_CAPS)"2"SS_TAP(X_CAPS));
break;
case CL_EGRV:
+ // capsLockOn è capsLockOff
SEND_STRING(SS_TAP(X_CAPS)"7"SS_TAP(X_CAPS));
break;
case UC_PI:
+ // Ctrl+Shift+u 3CO Enter
tap_code16(LCTL(LSFT(KC_U)));
tap_code16(S(KC_3));
tap_code16(KC_C);
@@ -147,6 +153,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
tap_code16(KC_ENT);
break;
case UC_ELIP:
+ // Ctrl+Shift+u 2026 Enter
tap_code16(LCTL(LSFT(KC_U)));
tap_code16(S(KC_2));
tap_code16(S(KC_0));
@@ -161,9 +168,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
};
#ifdef ENCODER_ENABLE
-
+#ifdef ENCODER_MAP_ENABLE
// This section is like the keymap matrix, but for rotary encoders
-// My left encoder is currently not working, so I'm using Layers to cope :')
+// My left encoder is currently not working, so I'm using Layers instead
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_VOLU, KC_VOLD)},
[1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_VOLU, KC_VOLD)},
@@ -171,19 +178,23 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_MNXT, KC_MPRV)},
};
+#endif
#endif
#ifdef RGBLIGHT_ENABLE
+// This section define RGB_Lighting overrides by layers
const rgblight_segment_t PROGMEM rgb_layer_1[] = RGBLIGHT_LAYER_SEGMENTS(
{30, 6, HSV_TURQUOISE},
{38, 6, HSV_TURQUOISE}
);
const rgblight_segment_t PROGMEM rgb_layer_2[] = RGBLIGHT_LAYER_SEGMENTS(
- {0, 73, HSV_TEAL}
+ {30, 6, HSV_TEAL},
+ {38, 6, HSV_TEAL}
);
const rgblight_segment_t PROGMEM rgb_layer_3[] = RGBLIGHT_LAYER_SEGMENTS(
- {37, 36, HSV_PURPLE}
+ {30, 6, HSV_PURPLE},
+ {38, 6, HSV_PURPLE}
);
const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(
@@ -192,11 +203,12 @@ const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(
rgb_layer_3 // Overrides for layer 3
);
+// Enable the LED layers
void keyboard_post_init_user(void) {
- // Enable the LED layers
rgblight_layers = rgb_layers;
}
+// Set activation conditions for each LED layers
layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 1));
rgblight_set_layer_state(1, layer_state_cmp(state, 2));
From 86fe11a5927d18ea72ae31850a72beeb8a17f820 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 19:10:44 +0200
Subject: [PATCH 03/10] Change rgb_layer_3
Remove overrides on left side of the keyboard as layer 3 do not affect
the left side of the keymap
---
keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
index 64b53f3e7516..1eda27b2d36c 100644
--- a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
@@ -193,7 +193,6 @@ const rgblight_segment_t PROGMEM rgb_layer_2[] = RGBLIGHT_LAYER_SEGMENTS(
{38, 6, HSV_TEAL}
);
const rgblight_segment_t PROGMEM rgb_layer_3[] = RGBLIGHT_LAYER_SEGMENTS(
- {30, 6, HSV_PURPLE},
{38, 6, HSV_PURPLE}
);
From 412d1dfb3cec8c7440f00ff5629cd12f5d02fde1 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 22:07:30 +0200
Subject: [PATCH 04/10] Add a basic readme.md
---
keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md b/keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md
new file mode 100644
index 000000000000..78ac014fe067
--- /dev/null
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md
@@ -0,0 +1,5 @@
+![Bastien-Baloup_FR keymap for sofle keyboard](https://i.imgur.com/Zlv1dj1.jpg)
+
+# Bastien-Baloup's French keymap for sofle keyboard
+
+Keymap based on the french azerty keyboard layout.
From 6628ba9c13f2ee82f897314ea251f2a776f66eea Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 22:26:19 +0200
Subject: [PATCH 05/10] Update copyrigth in config.h
---
keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h b/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
index 64309037d09f..d9477f455d27 100644
--- a/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
+++ b/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
@@ -1,5 +1,4 @@
- /* Copyright 2020 Josef Adamcik
- * Modification for VIA support and RGB underglow by Jens Bonk-Wiltfang
+ /* Copyright 2022 Bastien Baloup
*
* 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
@@ -17,11 +16,6 @@
#pragma once
-/* The way how "handedness" is decided (which half is which),
-see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
-for more options.
-*/
-
// More lighting options in quantum/rgblight/rgblight.h
#ifdef RGBLIGHT_ENABLE
// Disabling some of these is a good way to save flash space.
From 5cc00112bacf830fbf018fead3e3b4da5d340558 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Mon, 24 Oct 2022 22:34:44 +0200
Subject: [PATCH 06/10] Set folder name lowercased
---
.../keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/config.h | 0
.../keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/keymap.c | 0
.../keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/readme.md | 0
.../keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/rules.mk | 0
4 files changed, 0 insertions(+), 0 deletions(-)
rename keyboards/sofle/keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/config.h (100%)
rename keyboards/sofle/keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/keymap.c (100%)
rename keyboards/sofle/keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/readme.md (100%)
rename keyboards/sofle/keymaps/{Bastien-Baloup_FR => bastien-baloup_fr}/rules.mk (100%)
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h b/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
similarity index 100%
rename from keyboards/sofle/keymaps/Bastien-Baloup_FR/config.h
rename to keyboards/sofle/keymaps/bastien-baloup_fr/config.h
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c b/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
similarity index 100%
rename from keyboards/sofle/keymaps/Bastien-Baloup_FR/keymap.c
rename to keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md b/keyboards/sofle/keymaps/bastien-baloup_fr/readme.md
similarity index 100%
rename from keyboards/sofle/keymaps/Bastien-Baloup_FR/readme.md
rename to keyboards/sofle/keymaps/bastien-baloup_fr/readme.md
diff --git a/keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk b/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
similarity index 100%
rename from keyboards/sofle/keymaps/Bastien-Baloup_FR/rules.mk
rename to keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
From edf0bb696b26951a624b48c4c136051ccd9ca679 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Tue, 25 Oct 2022 02:09:23 +0200
Subject: [PATCH 07/10] Corrections for sofle/rev1
Add define of value that where missing at compilation for sofle/rev1
---
.../sofle/keymaps/bastien-baloup_fr/config.h | 37 +++++++++++--------
1 file changed, 22 insertions(+), 15 deletions(-)
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/config.h b/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
index d9477f455d27..403b87c58f96 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
@@ -18,22 +18,29 @@
// More lighting options in quantum/rgblight/rgblight.h
#ifdef RGBLIGHT_ENABLE
- // Disabling some of these is a good way to save flash space.
-// #define RGBLIGHT_EFFECT_ALTERNATING // 108
-// #define RGBLIGHT_EFFECT_RGB_TEST // 158
-// #define RGBLIGHT_EFFECT_RAINBOW_MOOD // 160
-// #define RGBLIGHT_EFFECT_STATIC_GRADIENT // 168
- #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // 192
-// #define RGBLIGHT_EFFECT_BREATHING // 348
-// #define RGBLIGHT_EFFECT_KNIGHT // 336
-// #define RGBLIGHT_EFFECT_SNAKE // 406
-// #define RGBLIGHT_EFFECT_CHRISTMAS // 508
-// #define RGBLIGHT_EFFECT_TWINKLE // 1156
- // Set default lighting option
- #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
- // Allow use of LEDs as modifier/layer indicators without disrupting animations.
- #define RGBLIGHT_LAYERS
+ // Disabling some of these is a good way to save flash space.
+// #define RGBLIGHT_EFFECT_ALTERNATING // 108
+// #define RGBLIGHT_EFFECT_RGB_TEST // 158
+// #define RGBLIGHT_EFFECT_RAINBOW_MOOD // 160
+// #define RGBLIGHT_EFFECT_STATIC_GRADIENT // 168
+ #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // 192
+// #define RGBLIGHT_EFFECT_BREATHING // 348
+// #define RGBLIGHT_EFFECT_KNIGHT // 336
+// #define RGBLIGHT_EFFECT_SNAKE // 406
+// #define RGBLIGHT_EFFECT_CHRISTMAS // 508
+// #define RGBLIGHT_EFFECT_TWINKLE // 1156
+
+ // Set default lighting option
+ #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
+ // Allow use of LEDs as modifier/layer indicators without disrupting animations.
+ #define RGBLIGHT_LAYERS
+
+ // Allow compiling to work on sofle/rev1
+ #if defined(KEYBOARD_sofle_rev1)
+ #define RGBLED_NUM 70
+ #define RGB_DI_PIN D3
+ #endif
#endif
// Disabled to save space
From 12858ceaac244c5825ac4eccbd858d504f4c1af5 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Tue, 25 Oct 2022 08:34:42 +0200
Subject: [PATCH 08/10] Implement requested changes and suggested improvements
---
.../sofle/keymaps/bastien-baloup_fr/config.h | 28 ++++---
.../sofle/keymaps/bastien-baloup_fr/keymap.c | 75 +++++++++----------
.../sofle/keymaps/bastien-baloup_fr/readme.md | 2 +-
.../sofle/keymaps/bastien-baloup_fr/rules.mk | 5 +-
4 files changed, 52 insertions(+), 58 deletions(-)
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/config.h b/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
index 403b87c58f96..f15cd7b8fb2b 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/config.h
@@ -20,34 +20,32 @@
#ifdef RGBLIGHT_ENABLE
// Disabling some of these is a good way to save flash space.
-// #define RGBLIGHT_EFFECT_ALTERNATING // 108
-// #define RGBLIGHT_EFFECT_RGB_TEST // 158
-// #define RGBLIGHT_EFFECT_RAINBOW_MOOD // 160
-// #define RGBLIGHT_EFFECT_STATIC_GRADIENT // 168
- #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // 192
-// #define RGBLIGHT_EFFECT_BREATHING // 348
-// #define RGBLIGHT_EFFECT_KNIGHT // 336
-// #define RGBLIGHT_EFFECT_SNAKE // 406
-// #define RGBLIGHT_EFFECT_CHRISTMAS // 508
-// #define RGBLIGHT_EFFECT_TWINKLE // 1156
+// #define RGBLIGHT_EFFECT_ALTERNATING
+// #define RGBLIGHT_EFFECT_RGB_TEST
+// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
+// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
+ #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+// #define RGBLIGHT_EFFECT_BREATHING
+// #define RGBLIGHT_EFFECT_KNIGHT
+// #define RGBLIGHT_EFFECT_SNAKE
+// #define RGBLIGHT_EFFECT_CHRISTMAS
+// #define RGBLIGHT_EFFECT_TWINKLE
// Set default lighting option
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
// Allow use of LEDs as modifier/layer indicators without disrupting animations.
#define RGBLIGHT_LAYERS
-
+
// Allow compiling to work on sofle/rev1
#if defined(KEYBOARD_sofle_rev1)
#define RGBLED_NUM 70
+ // D3 for ws2812 RGB LED
#define RGB_DI_PIN D3
#endif
#endif
// Disabled to save space
-#define NO_ACTION_ONESHOT // 332
-#define NO_ACTION_MACRO // 0
-#define NO_ACTION_FUNCTION // 0
-#define DISABLE_LEADER // 0
+#define NO_ACTION_ONESHOT
#define NO_MUSIC_MODE
#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c b/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
index 1eda27b2d36c..22fca66e3d7c 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
@@ -17,9 +17,8 @@
#include QMK_KEYBOARD_H
enum custom_keycodes {
- PLACEHOLDER = SAFE_RANGE, // can always be here (4 bytes)
// CL_ keycodes are here for charaters that need capslock on to be inputed.
- CL_AGRV, // À
+ CL_AGRV = SAFE_RANGE, // À
CL_EACU, // É
CL_EGRV, // È
// UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode.
@@ -127,48 +126,44 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Custom keycode handling.
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// handling this once instead of in each keycode uses less program memory.
- if ((keycode >= SAFE_RANGE) && !(record->event.pressed)) {
- return false;
+ if (record->event.pressed) {
+ switch (keycode) {
+ case CL_AGRV:
+ // capsLockOn à capsLockOff
+ SEND_STRING(SS_TAP(X_CAPS)"0"SS_TAP(X_CAPS));
+ break;
+ case CL_EACU:
+ // capsLockOn é capsLockOff
+ SEND_STRING(SS_TAP(X_CAPS)"2"SS_TAP(X_CAPS));
+ break;
+ case CL_EGRV:
+ // capsLockOn è capsLockOff
+ SEND_STRING(SS_TAP(X_CAPS)"7"SS_TAP(X_CAPS));
+ break;
+ case UC_PI:
+ // Ctrl+Shift+u 3CO Enter
+ tap_code16(LCTL(LSFT(KC_U)));
+ tap_code16(S(KC_3));
+ tap_code16(KC_C);
+ tap_code16(S(KC_0));
+ tap_code16(KC_ENT);
+ break;
+ case UC_ELIP:
+ // Ctrl+Shift+u 2026 Enter
+ tap_code16(LCTL(LSFT(KC_U)));
+ tap_code16(S(KC_2));
+ tap_code16(S(KC_0));
+ tap_code16(S(KC_2));
+ tap_code16(S(KC_6));
+ tap_code16(KC_ENT);
+ break;
+ }
}
-
- switch (keycode) {
- case CL_AGRV:
- // capsLockOn à capsLockOff
- SEND_STRING(SS_TAP(X_CAPS)"0"SS_TAP(X_CAPS));
- break;
- case CL_EACU:
- // capsLockOn é capsLockOff
- SEND_STRING(SS_TAP(X_CAPS)"2"SS_TAP(X_CAPS));
- break;
- case CL_EGRV:
- // capsLockOn è capsLockOff
- SEND_STRING(SS_TAP(X_CAPS)"7"SS_TAP(X_CAPS));
- break;
- case UC_PI:
- // Ctrl+Shift+u 3CO Enter
- tap_code16(LCTL(LSFT(KC_U)));
- tap_code16(S(KC_3));
- tap_code16(KC_C);
- tap_code16(S(KC_0));
- tap_code16(KC_ENT);
- break;
- case UC_ELIP:
- // Ctrl+Shift+u 2026 Enter
- tap_code16(LCTL(LSFT(KC_U)));
- tap_code16(S(KC_2));
- tap_code16(S(KC_0));
- tap_code16(S(KC_2));
- tap_code16(S(KC_6));
- tap_code16(KC_ENT);
- break;
- }
-
// this uses less memory than returning in each case.
return keycode < SAFE_RANGE;
};
-#ifdef ENCODER_ENABLE
-#ifdef ENCODER_MAP_ENABLE
+#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
// This section is like the keymap matrix, but for rotary encoders
// My left encoder is currently not working, so I'm using Layers instead
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
@@ -177,8 +172,6 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_MNXT, KC_MPRV)},
[3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(KC_MNXT, KC_MPRV)},
};
-
-#endif
#endif
#ifdef RGBLIGHT_ENABLE
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/readme.md b/keyboards/sofle/keymaps/bastien-baloup_fr/readme.md
index 78ac014fe067..315f172a7473 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/readme.md
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/readme.md
@@ -1,4 +1,4 @@
-![Bastien-Baloup_FR keymap for sofle keyboard](https://i.imgur.com/Zlv1dj1.jpg)
+![Bastien-Baloup_FR keymap for sofle keyboard](https://i.imgur.com/Zlv1dj1h.jpg)
# Bastien-Baloup's French keymap for sofle keyboard
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk b/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
index 78eeb8502015..fc9d640759d2 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
@@ -1,11 +1,14 @@
-VIA_ENABLE = no
RGBLIGHT_ENABLE = yes
EXTRAKEY_ENABLE = yes
LTO_ENABLE = yes
ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes
+VIA_ENABLE = no
OLED_ENABLE = no
CONSOLE_ENABLE = no
COMMAND_ENABLE = no
MOUSEKEY_ENABLE = no
MUSIC_ENABLE = no
+SPACE_CADET_ENABLE = no
+GRAVE_ESC_ENABLE = no
+MAGIC_ENABLE = no
From 6c06dc9483ce56ec94277bc1eb4f767ea9bb3ab7 Mon Sep 17 00:00:00 2001
From: Bastien-Baloup <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Tue, 29 Nov 2022 19:48:28 +0100
Subject: [PATCH 09/10] Update keymap following QMK's Keycodes refactoring
---
keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c b/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
index 22fca66e3d7c..8b9746837662 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/keymap.c
@@ -21,7 +21,7 @@ enum custom_keycodes {
CL_AGRV = SAFE_RANGE, // À
CL_EACU, // É
CL_EGRV, // È
- // UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode.
+ // UC_ keycodes uses (ctrl+shift+u)+code+enter to input unicode.
// I do not use the qmk unicode implementation because it does not uses the right keycodes to input numbers in a french layout.
UC_PI , // π
UC_ELIP // …
@@ -51,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC,
KC_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT,
MO(1) , KC_Z , KC_X , KC_C , KC_V , KC_B , XXXXXXX, KC_MUTE, KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH, MO(1) ,
- KC_LGUI, KC_LALT, KC_LCTRL, MO(2) , KC_ENT, KC_SPC, MO(3) , KC_RCTRL, KC_RALT, KC_HYPR
+ KC_LGUI, KC_LALT, KC_LCTL, MO(2) , KC_ENT, KC_SPC, MO(3) , KC_RCTL, KC_RALT, KC_HYPR
),
// I use a uppercase layer instead of using the Shift key because I find it easier to change the effect of shift+key chords this way.
/*
From d4417bbc71fa35fcefd53862a1ffa69067f6f447 Mon Sep 17 00:00:00 2001
From: Bastien BALOUP <35816948+Bastien-Baloup@users.noreply.github.com>
Date: Wed, 30 Nov 2022 13:21:49 +0100
Subject: [PATCH 10/10] Apply suggestion from faupark
Co-authored-by: Ryan
---
keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk | 5 -----
1 file changed, 5 deletions(-)
diff --git a/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk b/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
index fc9d640759d2..e3a0bd51934f 100644
--- a/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
+++ b/keyboards/sofle/keymaps/bastien-baloup_fr/rules.mk
@@ -3,12 +3,7 @@ EXTRAKEY_ENABLE = yes
LTO_ENABLE = yes
ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes
-VIA_ENABLE = no
OLED_ENABLE = no
-CONSOLE_ENABLE = no
-COMMAND_ENABLE = no
-MOUSEKEY_ENABLE = no
-MUSIC_ENABLE = no
SPACE_CADET_ENABLE = no
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no