Skip to content

Instantly share code, notes, and snippets.

@crides
Created August 31, 2020 21:37
Show Gist options
  • Save crides/8ee2b27570fa4ad1a65fb499206ab28b to your computer and use it in GitHub Desktop.
Save crides/8ee2b27570fa4ad1a65fb499206ab28b to your computer and use it in GitHub Desktop.
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#define G_DEL &mt LGUI DEL
#define C_TAB &mt LCTL TAB
#define S_SPC &mt LSFT SPC
#define A_BSP &mt LALT BKSP
/ {
behaviors {
l2_esc: behavior-l2-esc {
compatible = "zmk,behavior-tap-hold";
label = "l2-esc";
#binding-cells = <0>;
tapping_term_ms = <150>;
bindings = <&kp ESC>, <&mo 2>;
flavor = "balanced";
};
l1_ent: behavior-l1-ent {
compatible = "zmk,behavior-tap-hold";
label = "l1-ent";
#binding-cells = <0>;
tapping_term_ms = <150>;
bindings = <&kp RET>, <&mo 1>;
flavor = "balanced";
};
};
keymap {
compatible = "zmk,keymap";
default_layer {
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 SCLN
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT &kp FSLH
G_DEL C_TAB &l2_esc &l1_ent S_SPC A_BSP
>;
};
lower_layer {
bindings = <
&kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
G_DEL C_TAB &l2_esc &l1_ent S_SPC A_BSP
>;
};
raise_layer {
bindings = <
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &kp LARW &kp DARW &kp UARW &kp RARW &trans
&none &none &none &none &none &none &none &none &none &none
G_DEL C_TAB &l2_esc &l1_ent S_SPC A_BSP
>;
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment