#define EXTRA 8

This commit is contained in:
Chow Castro, Marcos 2022-09-28 13:58:09 +02:00
parent a3fc00f4df
commit c02f3fc715

View file

@ -80,6 +80,7 @@ SPDX-License-Identifier: MIT
#define MOUSE 5 #define MOUSE 5
#define NONE_LOCK_LAYER 6 #define NONE_LOCK_LAYER 6
#define LOCK_LAYER 7 #define LOCK_LAYER 7
#define EXTRA 8
#define LOCK &tog LOCK_LAYER #define LOCK &tog LOCK_LAYER
#define UNLOCK &tog DEFAULT #define UNLOCK &tog DEFAULT
// combinadas para optimizar espacio // combinadas para optimizar espacio
@ -111,14 +112,14 @@ SPDX-License-Identifier: MIT
//}}} //}}}
// ### keymap {{{ // ### keymap {{{
/ { / {
conditional_layers { conditional_layers {
compatible = "zmk,conditional-layers"; compatible = "zmk,conditional-layers";
tri_layer { tri_layer {
if-layers = <NONE_LOCK_LAYER LOCK_LAYER>; if-layers = <NONE_LOCK_LAYER LOCK_LAYER>;
then-layer = <FUNCTION>; then-layer = <EXTRA>;
}; };
}; };
keymap { keymap {
compatible = "zmk,keymap"; compatible = "zmk,keymap";
@ -288,6 +289,14 @@ SPDX-License-Identifier: MIT
&none &none &none &none &none &mo NONE_LOCK_LAYER &none &none &none &none &none &mo NONE_LOCK_LAYER
>; >;
}; };
extra_layer {
bindings = <
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none UNLOCK
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none
>;
};
}; };
}; };
// }}} // }}}