Skip to content

Commit

Permalink
Home row modsf
Browse files Browse the repository at this point in the history
  • Loading branch information
tannakartikey committed Jan 28, 2024
1 parent 6f48035 commit 317f3c3
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion config/boards/shields/corny/corny.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,33 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>

// Home row mods macro
#define HRML(k1,k2,k3,k4) &ht LGUI k1 &ht LALT k2 &ht LCTRL k3 &ht LSHIFT k4
#define HRMR(k1,k2,k3,k4) &ht RSHIFT k1 &ht RCTRL k2 &ht LALT k3 &ht RGUI k4

/ {
behaviors {
rpi: require_prior_idle {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <200>;
require-prior-idle-ms = <125>;
bindings = <&kp>, <&kp>;
};
ht: hold_tap {
label = "hold_tap";
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <150>;
global-quick-tap;
bindings = <&kp>, <&kp>;
};
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -14,7 +40,7 @@
// | ESC | TAB/L1 | SPC | | ENT | BKSP/L1 | ESC |
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LCTRL HRML(A,S,D,F) &kp G &kp H HRMR(J,K,L, SEMI) &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp C_MUTE &none &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
&kp ESC &lt 1 TAB &kp SPACE &kp RET &lt 1 BKSP &kp ESC
>;
Expand Down

0 comments on commit 317f3c3

Please sign in to comment.