From 3769fd827f6c006a9ea255a8ed20270586ccc461 Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Sun, 28 Aug 2022 16:09:56 -0400 Subject: [PATCH] add sys layer --- config/base.keymap | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/config/base.keymap b/config/base.keymap index c669cc7..b0f4a39 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -13,6 +13,7 @@ #define UPP_L 2 #define SYM_L 3 #define NUM_L 4 +#define SYS_L 5 /* Behavior Settings */ &caps_word { @@ -81,6 +82,16 @@ , <¯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"; @@ -122,10 +133,12 @@ COMBO(esc, &kp ESC, 2 3, DEF_L) COMBO(ent, &kp ENTER, 17 18, DEF_L) COMBO(del, &kp DEL, 15 16, DEF_L) - COMBO(tab, &kp TAB, 13 14, DEF_L) + COMBO(tab, &kp TAB, 12 13, DEF_L) COMBO(select_all, &kp LC(A), 20 21, NAV_L) COMBO(tmux_prefix, &kp LC(A), 23 25, DEF_L) + COMBO(sys_l, &mo_sys, 26 27, NUM_L) + }; conditional_layers { @@ -203,5 +216,18 @@ // ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯ >; }; + + sys_layer { + label = "Sys"; + bindings = < + // ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ + &none &none &none &none &none &none &none &none &none &none + &none &none &none &none &none &none &none &none &none &none + &reset &none &bootloader &none &none &none + // ╰─────────────┴─────────────┴─────────────╮ ╭─────────────┴─────────────┴─────────────╯ + &none &none &none &none + // ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯ + >; + }; }; };