This commit is contained in:
Glen 2022-04-11 22:00:11 -04:00
commit 41aa5a99e9
2 changed files with 64 additions and 0 deletions

20
config/general.dtsi Normal file
View file

@ -0,0 +1,20 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
/* Layers */
#define DEF_L 0
#define NAV_L 1
#define UPP_L 2
#define SYM_L 3
#define NUM_L 4
/* Behavior Settings */
&caps_word {
continue-list = <UNDERSCORE MINUS BACKSPACE>;
};
&sk {
release-after-ms = <60000>;
};

44
config/macros.dtsi Normal file
View file

@ -0,0 +1,44 @@
ZMK_MACRO(mo_nav,
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_tap &kp K_CANCEL>
, <&macro_press &mo NAV_L>
, <&macro_pause_for_release>
, <&macro_release &mo NAV_L>;)
ZMK_MACRO(mo_upp,
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_tap &kp K_CANCEL>
, <&macro_press &mo UPP_L>
, <&macro_pause_for_release>
, <&macro_release &mo UPP_L>;)
ZMK_MACRO(mo_sym,
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_tap &kp K_CANCEL>
, <&macro_press &mo SYM_L>
, <&macro_pause_for_release>
, <&macro_release &mo SYM_L>;)
ZMK_MACRO(leq,
wait-ms = <30>;
tap-ms = <40>;
bindings = <&kp LT &kp EQUAL>;
)
ZMK_MACRO(eq,
wait-ms = <30>;
tap-ms = <40>;
bindings = <&kp EQUAL &kp EQUAL>;
)
ZMK_MACRO(geq,
wait-ms = <30>;
tap-ms = <40>;
bindings = <&kp GT &kp EQUAL>;
)