Add layer labels

This commit is contained in:
Manna Harbour 2021-08-20 22:33:11 +10:00
parent e344fcab98
commit 33823c5c15
2 changed files with 18 additions and 0 deletions

View File

@ -733,6 +733,7 @@ standard keycode to implementation equivalent
keymap { keymap {
compatible = "zmk,keymap"; compatible = "zmk,keymap";
BASE_layer { BASE_layer {
label = "Base";
bindings = < bindings = <
#if defined MIRYOKU_ALPHAS_COLEMAK #if defined MIRYOKU_ALPHAS_COLEMAK
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -766,6 +767,7 @@ standard keycode to implementation equivalent
>; >;
}; };
TAP_layer { TAP_layer {
label = "Tap";
bindings = < bindings = <
#if defined MIRYOKU_ALPHAS_COLEMAK #if defined MIRYOKU_ALPHAS_COLEMAK
MIRYOKU_MAPPING_TAP( MIRYOKU_MAPPING_TAP(
@ -799,6 +801,7 @@ standard keycode to implementation equivalent
>; >;
}; };
MBO_layer { MBO_layer {
label = "Buttons";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
<<table-map-full(table=mbo)>> <<table-map-full(table=mbo)>>
@ -806,6 +809,7 @@ standard keycode to implementation equivalent
>; >;
}; };
NAVR_layer { NAVR_layer {
label = "Nav";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -819,6 +823,7 @@ standard keycode to implementation equivalent
>; >;
}; };
MOUR_layer { MOUR_layer {
label = "Mouse";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -832,6 +837,7 @@ standard keycode to implementation equivalent
>; >;
}; };
MEDR_layer { MEDR_layer {
label = "Media";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -845,6 +851,7 @@ standard keycode to implementation equivalent
>; >;
}; };
NSL_layer { NSL_layer {
label = "Num";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
<<table-map-half(mode="l", half_table=nsl)>> <<table-map-half(mode="l", half_table=nsl)>>
@ -852,6 +859,7 @@ standard keycode to implementation equivalent
>; >;
}; };
NSSL_layer { NSSL_layer {
label = "Sym";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
<<table-map-half(mode="l", half_table=nssl)>> <<table-map-half(mode="l", half_table=nssl)>>
@ -859,6 +867,7 @@ standard keycode to implementation equivalent
>; >;
}; };
FUNL_layer { FUNL_layer {
label = "Fun";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
<<table-map-half(mode="l", half_table=funl)>> <<table-map-half(mode="l", half_table=funl)>>

View File

@ -67,6 +67,7 @@
keymap { keymap {
compatible = "zmk,keymap"; compatible = "zmk,keymap";
BASE_layer { BASE_layer {
label = "Base";
bindings = < bindings = <
#if defined MIRYOKU_ALPHAS_COLEMAK #if defined MIRYOKU_ALPHAS_COLEMAK
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -121,6 +122,7 @@ U_NP, U_NP, &lt MEDR ESC, &lt NAVR SPC, &lt MOUR TAB, &lt NSSL R
>; >;
}; };
TAP_layer { TAP_layer {
label = "Tap";
bindings = < bindings = <
#if defined MIRYOKU_ALPHAS_COLEMAK #if defined MIRYOKU_ALPHAS_COLEMAK
MIRYOKU_MAPPING_TAP( MIRYOKU_MAPPING_TAP(
@ -175,6 +177,7 @@ U_NP, U_NP, &lt MEDR ESC, &lt NAVR SPC, &lt MOUR TAB, &lt NSSL R
>; >;
}; };
MBO_layer { MBO_layer {
label = "Buttons";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
U_RDO, U_PST, U_CPY, U_CUT, U_UND, U_RDO, U_PST, U_CPY, U_CUT, U_UND, U_RDO, U_PST, U_CPY, U_CUT, U_UND, U_RDO, U_PST, U_CPY, U_CUT, U_UND,
@ -185,6 +188,7 @@ U_NP, U_NP, U_NU, U_NU, &kp KP_N5, &kp KP_N5, U_NU, U_NU,
>; >;
}; };
NAVR_layer { NAVR_layer {
label = "Nav";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -204,6 +208,7 @@ U_NP, U_NP, U_NA, U_NA, U_NA, &kp RET, &k
>; >;
}; };
MOUR_layer { MOUR_layer {
label = "Mouse";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -223,6 +228,7 @@ U_NP, U_NP, U_NA, U_NA, U_NA, &kp KP_N5, U_
>; >;
}; };
MEDR_layer { MEDR_layer {
label = "Media";
bindings = < bindings = <
#if defined MIRYOKU_NAV_VI #if defined MIRYOKU_NAV_VI
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
@ -242,6 +248,7 @@ U_NP, U_NP, U_NA, U_NA, U_NA, &kp C_STOP, &k
>; >;
}; };
NSL_layer { NSL_layer {
label = "Num";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
&kp LBKT, &kp NUM_7, &kp NUM_8, &kp NUM_9, &kp RBKT, U_NA, U_NA, U_NA, &tog TAP, &bootloader, &kp LBKT, &kp NUM_7, &kp NUM_8, &kp NUM_9, &kp RBKT, U_NA, U_NA, U_NA, &tog TAP, &bootloader,
@ -252,6 +259,7 @@ U_NP, U_NP, &kp DOT, &kp NUM_0, &kp MINUS, U_NA, U_
>; >;
}; };
NSSL_layer { NSSL_layer {
label = "Sym";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
&kp LBRC, &kp AMPS, &kp ASTRK, &kp LPAR, &kp RBRC, U_NA, U_NA, U_NA, &tog TAP, &bootloader, &kp LBRC, &kp AMPS, &kp ASTRK, &kp LPAR, &kp RBRC, U_NA, U_NA, U_NA, &tog TAP, &bootloader,
@ -262,6 +270,7 @@ U_NP, U_NP, &kp LPAR, &kp RPAR, &kp UNDER, U_NA, U_
>; >;
}; };
FUNL_layer { FUNL_layer {
label = "Fun";
bindings = < bindings = <
MIRYOKU_MAPPING( MIRYOKU_MAPPING(
&kp F12, &kp F7, &kp F8, &kp F9, &kp PSCRN, U_NA, U_NA, U_NA, &tog TAP, &bootloader, &kp F12, &kp F7, &kp F8, &kp F9, &kp PSCRN, U_NA, U_NA, U_NA, &tog TAP, &bootloader,