add sys layer

This commit is contained in:
Glen Goodwin 2022-08-28 16:09:56 -04:00
parent 2ab08dc774
commit 3769fd827f
No known key found for this signature in database
GPG key ID: C3C3AEBD40C7B447

View file

@ -13,6 +13,7 @@
#define UPP_L 2 #define UPP_L 2
#define SYM_L 3 #define SYM_L 3
#define NUM_L 4 #define NUM_L 4
#define SYS_L 5
/* Behavior Settings */ /* Behavior Settings */
&caps_word { &caps_word {
@ -81,6 +82,16 @@
, <&macro_pause_for_release> , <&macro_pause_for_release>
, <&macro_release &mo SYM_L>;) , <&macro_release &mo SYM_L>;)
ZMK_MACRO(mo_sys,
wait-ms = <0>;
tap-ms = <0>;
bindings
= <&macro_tap &kp K_CANCEL>
, <&macro_press &mo SYS_L>
, <&macro_pause_for_release>
, <&macro_release &mo SYS_L>;)
combos { combos {
compatible = "zmk,combos"; compatible = "zmk,combos";
@ -122,10 +133,12 @@
COMBO(esc, &kp ESC, 2 3, DEF_L) COMBO(esc, &kp ESC, 2 3, DEF_L)
COMBO(ent, &kp ENTER, 17 18, DEF_L) COMBO(ent, &kp ENTER, 17 18, DEF_L)
COMBO(del, &kp DEL, 15 16, 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(select_all, &kp LC(A), 20 21, NAV_L)
COMBO(tmux_prefix, &kp LC(A), 23 25, DEF_L) COMBO(tmux_prefix, &kp LC(A), 23 25, DEF_L)
COMBO(sys_l, &mo_sys, 26 27, NUM_L)
}; };
conditional_layers { 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
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};
}; };
}; };