Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Dec 1, 2024
1 parent 66b42f3 commit 01bb361
Showing 1 changed file with 8 additions and 81 deletions.
89 changes: 8 additions & 81 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <behaviors/num_word.dtsi> // requires auto-layer module (https://github.com/urob/zmk-auto-layer)
#include <layouts/cuddlykeyboards/ferris.dtsi>

// Assigning suitable kscan and matrix transforms for ZMK Studio
#include <layouts/cuddlykeyboards/ferris.dtsi>
&cuddlykeyboards_ferris_layout {
transform = <&default_transform>;
kscan = <&kscan0>;
};

#define DEF 0
#define TMK 1 // TARMAK (https://forum.colemak.com/topic/1858-learn-colemak-in-steps-with-the-tarmak-layouts/)
#define NMT 2 // 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 3
#define NAV 4
#define SYM 5
#define FUN 6
#define AOE 7 // AOE 2 layers with easier access for default shortcuts on main layer
#define AGS 8
#define ABS 9
#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 HYPER LG(LS(LC(LALT)))

&sk {
Expand Down Expand Up @@ -109,13 +106,6 @@
require-prior-idle-ms = <200>;
};

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

sys_bootloader {
key-positions = <20 21>;
bindings = <&bootloader>;
Expand Down Expand Up @@ -148,7 +138,7 @@
};

// sys_zmk_studio_unlock {
// key-positions = <16 17 18>;
// key-positions = <26 27 28>;
// bindings = <&studio_unlock>;
// layers = <FUN>;
// };
Expand Down Expand Up @@ -230,33 +220,6 @@
require-prior-idle-ms = <175>;
};

ltl: ltl { // Layer-tap variants for urob's balanced hrm with a &lc instead of a regular &mo on hold
compatible = "zmk,behavior-hold-tap";
label = "LC_TAP_L";
bindings = <&lc>, <&kp>;

#binding-cells = <2>;
hold-trigger-key-positions = <5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 30 31 32 33>; // right-side + thumbs
flavor = "balanced";
tapping-term-ms = <280>;
hold-trigger-on-release;
quick-tap-ms = <175>;
require-prior-idle-ms = <175>;
};

ltr: ltr { // Layer-tap variants for urob's balanced hrm with a &lc instead of a regular &mo on hold
compatible = "zmk,behavior-hold-tap";
label = "LC_TAP_R";
bindings = <&lc>, <&kp>;

#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <280>;
hold-trigger-key-positions = <0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 30 31 32 33>; // left-side + thumbs
hold-trigger-on-release;
quick-tap-ms = <175>;
require-prior-idle-ms = <175>;
};
};

macros {
Expand Down Expand Up @@ -299,15 +262,6 @@
>;
};

TMK {
bindings = <
&kp Q &kp W &kp J &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 &hrml HYPER G &hrmr HYPER H &hrmr RGUI N &hrmr LSHFT E &hrmr RALT L &hrmr RCTRL SQT
&hrml GLOBE Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp SEMI
&lc NAV &hp RSHFT SPACE &kp SPACE &lc SYM
>;
};

NMT {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
Expand Down Expand Up @@ -353,31 +307,4 @@
>;
};

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
&lt 2 Z &kp X &kp C &kp V &kp B &trans &trans &trans &trans &trans
&lt AGS H &lt ABS DOT &trans &trans
>;
};

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
&kp COMMA &kp BSPC &kp SPACE &kp DOT &kp H &trans &trans &trans &trans &kp F3
&trans &kp DEL &trans &trans
>;
};

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
&kp LC(LS(Z)) &kp LC(LS(I)) &kp LC(LS(G)) &kp LC(LS(V)) &kp LC(LS(H)) &trans &trans &trans &trans &trans
&trans &trans &trans &trans
>;
};
};
};

0 comments on commit 01bb361

Please sign in to comment.