Skip to content

Commit

Permalink
add switch workspace tap dance
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartists committed Dec 24, 2023
1 parent 09b87ac commit 5ce03dc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 9 deletions.
44 changes: 36 additions & 8 deletions config/hackartist.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <150>;
quick_tap_ms = <10>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
Expand All @@ -42,12 +41,41 @@
label = "vm_esc_act";
#binding-cells = <0>;
bindings
= <&macro_press &kp LCTRL>
, <&macro_tap &kp LSHFT>
, <&macro_release &kp LCTRL>
, <&macro_press &kp LCTRL>
, <&macro_tap &kp SPACE>
, <&macro_release &kp LCTRL>;
= <&kp LC(LA(LSHFT))>
, <&kp LC(SPACE)>
;
};

sw_to_dev: macro_sw_to_dev {
compatible = "zmk,behavior-macro";
label = "sw_to_dev";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LSHFT))>
, <&kp LC(SPACE)>
, <&kp W>
, <&kp D>
;
};

sw_to_vm: macro_sw_to_vm {
compatible = "zmk,behavior-macro";
label = "sw_to_vm";
#binding-cells = <0>;
bindings
= <&kp LC(LA(LSHFT))>
, <&kp LC(SPACE)>
, <&kp W>
, <&kp V>
;
};

td_ws: tap_dance_workspace {
compatible = "zmk,behavior-tap-dance";
label = "td_ws";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&sw_to_dev>, <&sw_to_vm>;
};
};

Expand All @@ -58,7 +86,7 @@
bindings = <
&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &mo MISC &mo MISC &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp DEL &kp LC(LALT) &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp ESC &kp A &kp S &kp D &kp F &kp G &kp LA(SPACE) &kp LCTRL &kp LCMD &kp LCMD &kp RCTRL &vm_esc_act &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp ESC &kp A &kp S &kp D &kp F &kp G &td_ws &kp LCTRL &kp LCMD &kp LCMD &kp RCTRL &vm_esc_act &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp END &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp LSHFT
&kp LA(LSHFT) &kp GRAVE &kp LA(X) &kp LEFT &kp RIGHT &kp SPACE &kp LS(SPACE) &kp LALT &kp LALT &kp BSPC &kp ENTER &kp DOWN &kp UP &kp LBKT &kp RBKT &kp LC(LSHFT)
>;
Expand Down
2 changes: 1 addition & 1 deletion config/version.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ macro_ver: macro_ver {
compatible = "zmk,behavior-macro";
label = "macro_ver";
#binding-cells = <0>;
bindings = <&kp N2>, <&kp N0>, <&kp N2>, <&kp N3>, <&kp N1>, <&kp N2>, <&kp N2>, <&kp N1>, <&kp MINUS>, <&kp M>, <&kp A>, <&kp I>, <&kp N>, <&kp MINUS>, <&kp N3>, <&kp N0>, <&kp N7>, <&kp B>, <&kp N1>, <&kp N7>, <&kp E>, <&kp RET>;
bindings = <&kp N2>, <&kp N0>, <&kp N2>, <&kp N3>, <&kp N1>, <&kp N2>, <&kp N2>, <&kp N4>, <&kp MINUS>, <&kp M>, <&kp A>, <&kp I>, <&kp N>, <&kp MINUS>, <&kp N0>, <&kp N9>, <&kp B>, <&kp N8>, <&kp N7>, <&kp A>, <&kp C>, <&kp RET>;
};

0 comments on commit 5ce03dc

Please sign in to comment.