Skip to content

Commit

Permalink
Add more dedicated nav keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmkk3 authored Dec 11, 2024
1 parent b299e68 commit e57e71c
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#define PASTE LC(V)
#define UNDO LC(Z)
#define SLALL LC(A)
#define BTAB LC(TAB)
#define FHOME LC(HOME)
#define FEND LC(END)

/* Key Position Groups */
#define KEYS_L 0 1 2 3 4 10 11 12 13 14 20 21 22 // left-hand keys
Expand Down Expand Up @@ -61,6 +64,18 @@
hold-trigger-on-release;
global-quick-tap;
};
home: home_ignoring_ctrl {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&kp HOME>, <&kp HOME>;
mods = <(MOD_LCTL|MOD_RCTL|)>;
};
end: end_ignoring_ctrl {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&kp END>, <&kp END>;
mods = <(MOD_LCTL|MOD_RCTL|)>;
};
};

conditional_layers {
Expand Down Expand Up @@ -97,7 +112,14 @@
/* Convenience */
del { key-positions = <4 14>; bindings = <&kp DEL>; };
esc { key-positions = <5 15>; bindings = <&kp ESC>; };

/* Navigation */
slall { key-positions = <20 21>; bindings = <&kp SLALL>; layers = <NAV_L>; };
home { key-positions = <16 17>; bindings = <&home>; layers = <NAV_L>; };
end { key-positions = <17 18>; bindings = <&end>; layers = <NAV_L>; };
fhome { key-positions = <7 17>; bindings = <&kp FHOME>; layers = <NAV_L>; };
fend { key-positions = <17 24>; bindings = <&kp FEND>; layers = <NAV_L>; };

};

keymap {
Expand All @@ -113,8 +135,8 @@
nav_layer {
label = "Nav";
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp PG_UP &kp ESC &kp UARW &kp TAB &kp HOME
&kp LGUI &kp LALT &kp LSHFT &kp LCTRL &kp UNDO &kp PG_DN &kp LARW &kp ENTER &kp RARW &kp END
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp PG_UP &kp BTAB &kp UARW &kp TAB &none
&kp LGUI &kp LALT &kp LSHFT &kp LCTRL &kp UNDO &kp PG_DN &kp LARW &kp ENTER &kp RARW &kp ESC
&kp CUT &kp COPY &kp PASTE &kp BSPC &kp DARW &kp DEL
&trans &trans &trans &trans
>;
Expand Down

0 comments on commit e57e71c

Please sign in to comment.