Skip to content

Commit

Permalink
bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Mouthuy committed Aug 12, 2024
1 parent 9de7970 commit 5ef27ce
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 57 deletions.
3 changes: 1 addition & 2 deletions config/moutis_behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
╰──────────╯ ╰──────────╯
*/

behaviors {
skapp: sticky_key_app_switcher {
compatible = "zmk,behavior-sticky-key";
label = "SK_APP_SWITCHER";
Expand Down Expand Up @@ -320,4 +319,4 @@ behaviors {
bindings = <&kp BSPC>, <&kp DEL>;
mods = <(MOD_LSFT|MOD_RSFT)>;
};
};

33 changes: 33 additions & 0 deletions config/moutis_combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,39 @@
combos {
compatible = "zmk,combos";

a-acute {
bindings = <&kp FR_A_GRAVE>;
key-positions = <10 0>;
layers = <0>;
};

e-grave {
bindings = <&kp FR_E_GRAVE>;
key-positions = <12 2>;
layers = <0>;
};

u-grave {
bindings = <&kp FR_U_GRAVE>;
key-positions = <4 14>;
layers = <0>;
};

e-acute {
bindings = <&kp FR_E_ACUTE>;
key-positions = <12 22>;
layers = <0>;
};

Switch-layer {
bindings = <&mo 6>;
key-positions = <16 17 18 19>;
};

switch_sensors {
bindings = <&mo 6>;
key-positions = <10 11 12 13>;
};
//
// control/modes
//
Expand Down
56 changes: 1 addition & 55 deletions config/splitkb_aurora_sweep.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -25,65 +25,11 @@
&left_encoder1 { steps = <60>; };

/ {
#include "moutis_behaviors.dtsi"
#include "moutis_macros.dtsi"
#include "moutis_combos.dtsi"

combos {
compatible = "zmk,combos";

a-acute {
bindings = <&kp FR_A_GRAVE>;
key-positions = <10 0>;
layers = <0>;
};

e-grave {
bindings = <&kp FR_E_GRAVE>;
key-positions = <12 2>;
layers = <0>;
};

u-grave {
bindings = <&kp FR_U_GRAVE>;
key-positions = <4 14>;
layers = <0>;
};

e-acute {
bindings = <&kp FR_E_ACUTE>;
key-positions = <12 22>;
layers = <0>;
};

Switch-layer {
bindings = <&mo 6>;
key-positions = <16 17 18 19>;
};

switch_sensors {
bindings = <&mo 6>;
key-positions = <10 11 12 13>;
};
};

macros {
delete_word: delete_word {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LS(LA(LEFT)) &kp BACKSPACE>;
label = "DELETE_WORD";
};

smart_space: smart_space {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp FR_DOT &kp FR_SPACE &sk LEFT_SHIFT>;
label = "SMART_SPACE";
};
};

behaviors {
#include "moutis_behaviors.dtsi"
dot_colon: dot_colon {
compatible = "zmk,behavior-mod-morph";
label = "DOT_COLON";
Expand Down

0 comments on commit 5ef27ce

Please sign in to comment.