From de8df5cce44b27f3ff4ce57a4dfdc039c3a9c285 Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Fri, 12 Aug 2022 13:52:32 -0400 Subject: [PATCH] add Sys layer --- config/flea.keymap | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/config/flea.keymap b/config/flea.keymap index 5037a02..433aa9b 100644 --- a/config/flea.keymap +++ b/config/flea.keymap @@ -14,6 +14,7 @@ #define UPP_L 2 #define SYM_L 3 #define NUM_L 4 +#define SYS_L 5 /* Behavior Settings */ &caps_word { @@ -42,6 +43,7 @@ , <¯o_press &mo UPP_L> , <¯o_pause_for_release> , <¯o_release &mo UPP_L>;) + ZMK_MACRO(leq, wait-ms = <30>; tap-ms = <40>; @@ -81,6 +83,15 @@ , <¯o_pause_for_release> , <¯o_release &mo SYM_L>;) + ZMK_MACRO(mo_sys, + wait-ms = <0>; + tap-ms = <0>; + bindings + = <¯o_tap &kp K_CANCEL> + , <¯o_press &mo SYS_L> + , <¯o_pause_for_release> + , <¯o_release &mo SYS_L>;) + combos { compatible = "zmk,combos"; @@ -126,6 +137,7 @@ COMBO(select_all, &kp LC(A), 19 20, NAV_L) COMBO(tmux_prefix, &kp LC(A), 22 24, DEF_L UPP_L SYM_L NUM_L) + COMBO(sys_l, &mo_sys, 26 27, NUM_L) }; @@ -159,7 +171,7 @@ // ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ &kp N0 &kp LC(O) &kp HOME &hop &kp PG_UP &kp END &kp LC(I) &kp DLLR &sk LGUI &sk LALT &sk LCTRL &sk LSHFT &kp LC(Z) &kp PG_DN &kp LARW &kp DARW &kp UARW &kp RARW - &bt BT_NXT &kp LC(X) &kp LC(C) &kp LC(V) &kp TAB &kp LS(TAB) &key_repeat &caps_word + &none &kp LC(X) &kp LC(C) &kp LC(V) &kp TAB &kp LS(TAB) &key_repeat &caps_word // ╰─────────────┴─────────────┴─────────────╮ ╭─────────────┴─────────────┴─────────────╯ &trans &trans &kp BSPC &kp DEL // ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯ @@ -204,5 +216,18 @@ // ╰─────────────┴─────────────╯ ╰─────────────┴───────────── >; }; + + sys_layer { + label = "Sys"; + bindings = < + // ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ + &bt BT_PRV &bt BT_CLR &bt BT_NXT &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 + &none &none &none &none &none &none &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 5 &none + &none &reset &none &bootloader &bootloader &none &reset &none + // ╰─────────────┴─────────────┴─────────────╮ ╭─────────────┴─────────────┴─────────────╯ + &none &none &none &none + // ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯ + >; + }; }; };