Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmkk3 authored Feb 11, 2025
1 parent 231a495 commit c08187e
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 105 deletions.
45 changes: 9 additions & 36 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
#define COPY LC(C)
#define PASTE LC(V)
#define UNDO LC(Z)
#define SLALL LC(A)
#define FIRST LC(HOME)
#define LAST LC(END)

/* Key Position Groups */
#define KEYS_LEFT 0 1 2 3 4 10 11 12 13 14 20 21 22
#define KEYS_RIGHT 5 6 7 8 9 15 16 17 18 19 23 24 25
#define KEYS_THUMBS 26 27 28 29
#define ALL LC(A)
#define TOP LC(HOME)
#define BTM LC(END)

/* Behavior Settings */
&sk {
Expand All @@ -33,28 +28,6 @@

/ {
behaviors {
mtl: mod_tap_left {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <280>;
quick-tap-ms = <175>;
require-prior-idle-ms = <150>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_RIGHT KEYS_THUMBS>;
hold-trigger-on-release;
};
mtr: mod_tap_right {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <280>;
quick-tap-ms = <175>;
require-prior-idle-ms = <150>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_LEFT KEYS_THUMBS>;
hold-trigger-on-release;
};
home: home_ignoring_ctrl {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
Expand Down Expand Up @@ -90,7 +63,7 @@
/* Letters */
v { key-positions = <1 2>; bindings = <&kp V>; layers = <DEF_L>; };
q { key-positions = <2 3>; bindings = <&kp Q>; layers = <DEF_L>; };
z { key-positions = <20 21>; bindings = <&kp Z>; layers = <DEF_L>; };
x { key-positions = <20 21>; bindings = <&kp X>; layers = <DEF_L>; };

/* Brackets */
lbkt { key-positions = <1 11>; bindings = <&kp LBKT>; layers = <DEF_L SYM_L NUM_L>; };
Expand All @@ -103,14 +76,14 @@
/* Convenience */
del { key-positions = <4 14>; bindings = <&kp DEL>; };
esc { key-positions = <5 15>; bindings = <&kp ESC>; };
slall { key-positions = <20 21>; bindings = <&kp SLALL>; layers = <NAV_L>; };
all { key-positions = <20 21>; bindings = <&kp ALL>; layers = <NAV_L>; };
};

keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp X &kp C &kp L &kp F &kp P &kp K &kp Y &kp O &kp U &kp QUOT
&kp Z &kp C &kp L &kp F &kp P &kp K &kp Y &kp O &kp U &kp QUOT
&kp R &kp S &kp N &kp T &kp B &kp J &kp H &kp E &kp I &kp A
&kp W &kp M &kp G &kp D &kp COMMA &kp DOT
&sl NAV_L &kp SPACE &sk LSHFT &sl SYM_L
Expand All @@ -119,8 +92,8 @@
nav_layer {
label = "Nav";
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp FIRST &kp ESC &kp UARW &kp TAB &home
&kp LGUI &kp LALT &kp LSHFT &kp LCTRL &kp UNDO &kp LAST &kp LARW &kp ENTER &kp RARW &end
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp TOP &kp ESC &kp UARW &kp TAB &home
&kp LGUI &kp LALT &kp LSHFT &kp LCTRL &kp UNDO &kp BTM &kp LARW &kp ENTER &kp RARW &end
&kp CUT &kp COPY &kp PASTE &kp BSPC &kp DARW &kp DEL
&trans &trans &trans &trans
>;
Expand All @@ -138,7 +111,7 @@
label = "Num";
bindings = <
&none &none &none &none &none &none &none &none &none &none
&mtl LGUI N1 &mtl LALT N2 &mtl LSHFT N3 &mtl LCTRL N4 &kp N5 &kp N6 &mtr LCTRL N7 &mtr LSHFT N8 &mtr LALT N9 &mtr LGUI N0
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&none &none &none &none &none &none
&trans &trans &trans &trans
>;
Expand Down
Loading

0 comments on commit c08187e

Please sign in to comment.