Skip to content

Commit

Permalink
Fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Makarewicz committed May 26, 2023
1 parent 31e025f commit 2c5f06b
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,24 @@
#define QWERTY 7
#define SQWERTY 8

#include "combos.dtsi" // requires layer aliases
// 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 = <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 = <NUM>;
continue-list = <BSPC DEL DOT COMMA PLUS MINUS STAR FSLH EQUAL>;
};

#include "combos.dtsi" // requires layer aliases and smart number
#include "mouse.dtsi"
#include "extra_keys.h"

Expand Down Expand Up @@ -94,22 +111,6 @@ 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 = <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 = <NUM>;
continue-list = <BSPC DEL DOT COMMA PLUS MINUS STAR FSLH EQUAL>;
};

// smart-mouse, requires PR #1366
ZMK_BEHAVIOR(smart_mouse, tri_state,
Expand Down

0 comments on commit 2c5f06b

Please sign in to comment.