Skip to content

Commit

Permalink
Adding M combo for map, and trying to do tap-dances for V/H, and F-wi…
Browse files Browse the repository at this point in the history
…th-lock.
  • Loading branch information
amacleod committed Nov 21, 2024
1 parent d93dcd3 commit e07d271
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
26 changes: 20 additions & 6 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ keymap {
factorio_layer {
// ,-----------------------------. ,-----------------------------.
// | T | Q | W | E | R | | Y | U | I | O | P |
// |Shift| A | S | D | H | | H | J | K | L | ; |
// | Ctrl| Z | X | C | V | | N | M | , | . | / |
// `-----------------|F/OVL|Space| | Spc |QWRTY|-----------------'
// |Shift| A | S | D | F | | H | J | K | L | ; |
// | Ctrl| Z | X | C | V H | | N | M | , | . | / |
// `-----------------| OVL |Space| | Spc |QWRTY|-----------------'
bindings = <
&kp T &kp Q &kp W &kp E &kp R &qkp Y &qkp U &qkp I &qkp O &qkp P
&kp LSHIFT &kp A &kp S &kp D &kp H &qkp H &qkp J &qkp K &qkp L &qkp SEMI
&kp LCTRL &kp Z &kp X &kp C &kp V &qkp N &qkp M &qkp COMMA &qkp DOT &qkp FSLH
&ltq OVERLAY F &kp SPACE &qkp SPACE &to QWERTY
&kp LSHIFT &kp A &kp S &kp D &tdf &qkp H &qkp J &qkp K &qkp L &qkp SEMI
&kp LCTRL &kp Z &kp X &kp C &tdvh &qkp N &qkp M &qkp COMMA &qkp DOT &qkp FSLH
&mo OVERLAY &kp SPACE &qkp SPACE &to QWERTY
>;
display-name = "F A C";
};
Expand Down Expand Up @@ -133,6 +133,20 @@ behaviors {
quick-tap-ms = <200>;
retro-tap;
};
// Tap once for V, twice for H: flipping of entities and ghosts.
tdvh: tap_dance_v_h {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&kp V>, <&kp H>;
};
// Tap once for tapping F, twice to lock it in: pick up items.
tdf: tap_dance_f_lock {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&kp F>, <&kt F>;
};
}; // end behaviors

macros {
Expand Down
7 changes: 7 additions & 0 deletions config/glam-factorio-combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,12 @@
bindings = <&kp P>;
layers = <FACTORY>;
};
// Three bottom row keys in a row for M: map.
combo_bottom_triple_map {
timeout-ms = <50>;
key-positions = <LB3 LB2 LB1>;
bindings = <&kp M>;
layers = <FACTORY>;
};

// };

0 comments on commit e07d271

Please sign in to comment.