From 3e2944a7b9e89ccc098d359a9b55aa484468f832 Mon Sep 17 00:00:00 2001 From: Kyle Mitchell <45919695+jcmkk3@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:36:13 -0800 Subject: [PATCH] Minor nav layer improvements --- config/base.keymap | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/config/base.keymap b/config/base.keymap index d1d14f6..77d6437 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -19,6 +19,8 @@ #define PASTE LC(V) #define UNDO LC(Z) #define SLALL LC(A) +#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 @@ -61,6 +63,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 { @@ -113,8 +127,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 FHOME &kp ESC &kp UARW &kp TAB &home + &kp LGUI &kp LALT &kp LSHFT &kp LCTRL &kp UNDO &kp FEND &kp LARW &kp ENTER &kp RARW &end &kp CUT &kp COPY &kp PASTE &kp BSPC &kp DARW &kp DEL &trans &trans &trans &trans >;