Skip to content

Commit

Permalink
NMT
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Oct 27, 2024
1 parent a36f24d commit 1b51ff4
Showing 1 changed file with 53 additions and 37 deletions.
90 changes: 53 additions & 37 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
#include <dt-bindings/zmk/keys.h>

#define DEF 0
#define HRM 1 // No-mod-taps for if I regret setting mod-taps and can't access my code or can't update my firmware on the keyboard
#define NMT 1 // No-mod-taps for if I regret setting mod-taps and can't access my code or can't update my firmware on the keyboard
#define NUM 2
#define NAV 3
#define SYM 4
#define FUN 5
#define SYS 6
#define AOE 7 // AOE 2 layers with easier access for default shortcuts on main layer
#define AGS 8
#define ABS 9
#define AOE 6 // AOE 2 layers with easier access for default shortcuts on main layer
#define AGS 7
#define ABS 8

#define HYPER LG(LC(LA(LSHFT)))

Expand Down Expand Up @@ -49,13 +48,13 @@
sticky_sym_layer_for_one_handed_typing {
key-positions = <32 33>;
bindings = <&sl SYM>;
layers = <DEF HRM>;
layers = <DEF NMT>;
require-prior-idle-ms = <200>;
};

toggle_mod_taps {
key-positions = <14 15>;
bindings = <&tog HRM>;
bindings = <&tog NMT>;
require-prior-idle-ms = <200>;
};

Expand All @@ -68,30 +67,56 @@
toggle_num_word {
key-positions = <12 30>;
bindings = <&num_word NUM>; // requires auto-layer module (https://github.com/urob/zmk-auto-layer)
layers = <DEF HRM NUM>;
layers = <DEF NMT NUM>;
};
require-prior-idle-ms = <200>;

toggle_caps_word {
key-positions = <12 17>;
bindings = <&caps_word>;
layers = <DEF HRM>;
layers = <DEF NMT>;
require-prior-idle-ms = <200>;
};

toggle_aoe {
key-positions = <20 21 22>;
bindings = <&tog AOE>;
layers = <DEF HRM AOE>;
layers = <DEF NMT AOE>;
require-prior-idle-ms = <200>;
};

sys_sticky_layer {
key-positions = <24 25>;
bindings = <&sl SYS>;
sys_bootloader {
key-positions = <20 21>;
bindings = <&bootloader>;
layers = <FUN>;
require-prior-idle-ms = <200>;
};

sys_connect_to_bt0 {
key-positions = <3 4>;
bindings = <&bt BT_SEL 0>;
layers = <FUN>;
};

sys_connect_to_bt1 {
key-positions = <13 14>;
bindings = <&bt BT_SEL 1>;
layers = <FUN>;
};

sys_connect_to_bt2 {
key-positions = <23 24>;
bindings = <&bt BT_SEL 2>;
layers = <FUN>;
};

sys_clear_current_bluetooth_profile {
key-positions = <28 29>;
bindings = <&bt BT_CLR>;
layers = <FUN>;
require-prior-idle-ms = <200>;
};


};

Expand Down Expand Up @@ -129,7 +154,7 @@

hrml: hrml {
compatible = "zmk,behavior-hold-tap";
label = "HRML";
label = "NMTL";
bindings = <&kp>, <&kp>;

#binding-cells = <2>;
Expand All @@ -143,7 +168,7 @@

hrmr: hrmr {
compatible = "zmk,behavior-hold-tap";
label = "HRMR";
label = "NMTR";
bindings = <&kp>, <&kp>;

#binding-cells = <2>;
Expand Down Expand Up @@ -219,15 +244,6 @@
compatible = "zmk,keymap";

DEF {
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 SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV &kp RSHFT &kp SPACE &lc SYM
>;
};

HRM {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&hrml LCTRL A &hrml LALT S &hrml LSHFT D &hrml LGUI F &kp G &kp H &hrmr RGUI J &hrmr LSHFT K &hrmr RALT L &hrmr RCTRL SQT
Expand All @@ -236,6 +252,15 @@
>;
};

NMT {
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 SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV &kp RSHFT &kp SPACE &lc SYM
>;
};

NUM {
bindings = <
&sl SYM &kp N7 &kp N8 &kp N9 &kp COLON &trans &trans &trans &trans &trans
Expand All @@ -249,7 +274,7 @@
bindings = <
&kp TAB &swapper &kp LS(LC(TAB)) &kp LC(TAB) &kp LG(RBKT) &kp PG_UP &kp HOME &kp UP &kp END &kp BSPC
&sk LCTRL &sk LALT &sk LSHFT &sk LGUI &kp LG(LBKT) &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp RET
&kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &sk GLOBE &kp F18 &playnp &vb_dn &vb_up &kp DEL
&kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &sk GLOBE &caps_word &playnp &vb_dn &vb_up &kp DEL
&trans &kp F18 &trans &trans
>;
};
Expand All @@ -272,17 +297,8 @@
>;
};

SYS {
bindings = <
&bootloader &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &bootloader
&trans &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &trans
&bt BT_CLR &trans &trans &trans &bt BT_SEL 2 &trans &trans &trans &trans &bt BT_CLR
&trans &trans &trans &trans
>;
};


aoe_default_layer {
AOE {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &trans &trans &trans &trans &trans
&mt LCTRL A &mt LALT S &mt LSHFT D &mt LCTRL F &kp G &trans &trans &trans &trans &trans
Expand All @@ -291,7 +307,7 @@
>;
};

aoe_unit_and_group_selection {
AGS {
bindings = <
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &trans &trans &trans &kp BSPC
&mt LCTRL N6 &mt LALT N7 &mt LSHFT N8 &mt LCTRL N9 &kp N0 &trans &trans &trans &trans &kp ENTER
Expand All @@ -300,7 +316,7 @@
>;
};

aoe_select_all_buildings {
ABS {
bindings = <
&kp LC(LS(M)) &kp LC(LS(S)) &kp LC(LS(U)) &kp LC(LS(Y)) &kp LS(COMMA) &trans &trans &trans &trans &trans
&kp LC(LS(A)) &kp LC(LS(L)) &kp LC(LS(B)) &kp LC(LS(K)) &kp LS(LC(D)) &trans &trans &trans &trans &trans
Expand Down

0 comments on commit 1b51ff4

Please sign in to comment.