Skip to content

Commit

Permalink
eliminated a #define
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Nov 6, 2024
1 parent db2fa00 commit ffee6e3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,17 @@
mods = <(MOD_LCTL)>;
};

thumb_shift: thumb_shift { // Allows for space/shift+space for scrolling up with the left hand on the keyboard and the right one on the mouse
tshift: thumb_shift { // Allows for space/shift+space for scrolling up with the left hand on the keyboard and the right one on the mouse
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
label = "THUMB_SHIFT";
bindings = <&kp>, <&kp>;

#binding-cells = <2>;
flavor = "hold-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <175>;
hold-while-undecided;
};
#define THUMB_SHIFT &thumb_shift RSHFT SPACE

swapper: swapper_for_apple_cmd_tab {
compatible = "zmk,behavior-tri-state"; // requires tri-state module (https://github.com/urob/zmk-tri-state)
Expand Down Expand Up @@ -261,16 +263,16 @@
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&hrml LCTRL A &hrml LALT S &hrml LSHFT D &hrml LGUI F &hrml GLOBE G &hrmr GLOBE H &hrmr RGUI J &hrmr LSHFT K &hrmr RALT L &hrmr RCTRL SQT
&hrml GLOBE Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV THUMB_SHIFT &kp SPACE &lc SYM
&lc NAV &tshift RSHFT SPACE &kp SPACE &lc SYM
>;
};

NMT {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV THUMB_SHIFT &kp SPACE &lc SYM
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV &tshift RSHFT SPACE &kp SPACE &lc SYM
>;
};

Expand Down

0 comments on commit ffee6e3

Please sign in to comment.