You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.6 KiB
79 lines
3.6 KiB
/* |
|
* Copyright (c) 2020 The ZMK Contributors |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#include <behaviors.dtsi> |
|
#include <dt-bindings/zmk/keys.h> |
|
#include <dt-bindings/zmk/bt.h> |
|
|
|
#define NAV_L 1 |
|
#define OTHER_L 2 |
|
#define NUM_L 3 |
|
#define SYM_L 4 |
|
|
|
// Using layer taps on thumbs, having quick tap as well helps w/ repeating space/backspace |
|
< { quick_tap_ms = <200>; }; |
|
|
|
/ { |
|
behaviors { |
|
hm: homerow_mods { |
|
compatible = "zmk,behavior-hold-tap"; |
|
label = "homerow mods"; |
|
#binding-cells = <2>; |
|
tapping_term_ms = <200>; |
|
flavor = "tap-preferred"; |
|
bindings = <&kp>, <&kp>; |
|
}; |
|
}; |
|
|
|
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 |
|
&hm LGUI A &hm LALT S &hm LCTRL D &hm LSHFT F &kp G &kp H &hm RSHFT J &hm RCTRL K &hm LALT L &hm LGUI QUOT |
|
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH |
|
< NAV_L TAB &kp ENTER < NUM_L SPACE < SYM_L BKSP |
|
>; |
|
}; |
|
|
|
nav_layer { |
|
bindings = < |
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
|
&trans &trans &trans &trans &trans &trans &kp LARW &kp DARW &kp UARW &kp RARW |
|
&trans &trans &trans &trans &trans &trans &kp HOME &kp PG_DN &kp PG_UP &kp END |
|
&trans &trans &kp ESC &kp DEL |
|
>; |
|
}; |
|
|
|
other_layer { |
|
bindings = < |
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
|
&trans &trans &trans &trans &trans &trans &kp HOME &trans &trans &trans |
|
&trans &trans &trans &trans |
|
>; |
|
}; |
|
|
|
num_layer { |
|
bindings = < |
|
&kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT &trans &trans &trans &trans &trans |
|
&kp SEMI &kp N4 &kp N5 &kp N6 &kp EQUAL &trans &trans &trans &trans &trans |
|
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp BSLH &trans &trans &trans &trans &trans |
|
&kp N0 &kp MINUS &trans &trans |
|
>; |
|
}; |
|
|
|
sym_layer { |
|
bindings = < |
|
&kp LBRC &kp LS(N7) &kp LS(N8) &kp LS(N9) &kp RBRC &trans &trans &trans &trans &trans |
|
&kp COLON &kp LS(N4) &kp LS(N5) &kp LS(N6) &kp PLUS &trans &trans &trans &trans &trans |
|
&kp TILDE &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(BSLH) &trans &trans &trans &trans &trans |
|
&kp LS(N0) &kp UNDER &trans &trans |
|
>; |
|
}; |
|
}; |
|
};
|
|
|