diff --git a/config/base.keymap b/config/base.keymap index 3623f28a7..478b85760 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -21,24 +21,6 @@ #define QWERTY 7 #define SQWERTY 8 -// tap: num-word | double-tap: sticky num-layer | hold: num-layer -#define SMART_NUM &smart_num NUM 0 -ZMK_BEHAVIOR(smart_num, hold_tap, - flavor = "balanced"; - tapping-term-ms = <200>; - quick-tap-ms = ; - bindings = <&mo>, <&num_dance>; -) -ZMK_BEHAVIOR(num_dance, tap_dance, - tapping-term-ms = <200>; - bindings = <&num_word>, <&sl NUM>; // reverse this for sticky-num on single tap -) -&num_word { // num-word, requires PR #1441 - layers = ; - continue-list = ; -}; - -#include "combos.dtsi" // requires layer aliases and smart number #include "mouse.dtsi" #include "extra_keys.h" @@ -111,6 +93,22 @@ ZMK_BEHAVIOR(smart_shft, mod_morph, /delete-property/ ignore-modifiers; }; +// tap: num-word | double-tap: sticky num-layer | hold: num-layer +#define SMART_NUM &smart_num NUM 0 +ZMK_BEHAVIOR(smart_num, hold_tap, + flavor = "balanced"; + tapping-term-ms = <200>; + quick-tap-ms = ; + bindings = <&mo>, <&num_dance>; +) +ZMK_BEHAVIOR(num_dance, tap_dance, + tapping-term-ms = <200>; + bindings = <&num_word>, <&sl NUM>; // reverse this for sticky-num on single tap +) +&num_word { // num-word, requires PR #1441 + layers = ; + continue-list = ; +}; // smart-mouse, requires PR #1366 ZMK_BEHAVIOR(smart_mouse, tri_state, @@ -180,6 +178,7 @@ ZMK_BEHAVIOR(dot_spc, macro, bindings = <&kp DOT &kp SPACE &sk LSHFT>; ) +#include "combos.dtsi" // requires layer aliases and stuff /* Keymap */