add Sys layer

This commit is contained in:
Glen Goodwin 2022-08-12 13:52:32 -04:00
parent cc57de6b7a
commit de8df5cce4
No known key found for this signature in database
GPG key ID: C3C3AEBD40C7B447

View file

@ -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 @@
, <&macro_press &mo UPP_L>
, <&macro_pause_for_release>
, <&macro_release &mo UPP_L>;)
ZMK_MACRO(leq,
wait-ms = <30>;
tap-ms = <40>;
@ -81,6 +83,15 @@
, <&macro_pause_for_release>
, <&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 {
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
// ╰─────────────┴─────────────╯ ╰─────────────┴─────────────╯
>;
};
};
};