This change allows the user to flip individual layers.
To facilitate this, I
- changed the parameter
MIRYOKU_LAYERS
to
- accept values of the form
FLIP_$LAYER
(e.g. MIRYOKU_LAYERS=FLIP_SYM
)
- accept a list of values separated by commas
- added a new parameter
MIRYOKU_THUMBKEYS_LAYER
, that
- accepts values of the form
$THUMBKEY=$LAYER
(e.g. LO=MEDIA)
- for now I've named the thumb keys by hand and relative position, though I'm open to changing that
- (left outer) LO
- (left middle) LM
- (left inner) LI
- (right inner) RI
- (right middle) RM
- (right outer) RO
- accepts a list of values separated by commas
I've also added an additional parameter MIRYOKU_THUMBKEYS_KEYCODE
that allows the user to rebind the thumb keys. This parameter accepts a comma-separated list of values of the form $THUMBKEY=$QMK_KEY_CODE
.
At the same time, this change allows decoupling the flipping of layers from the flipping of layer change keys. If a user wishes to use the same hand for switching to a layer (to facilitate one-handed media control for example), this is now possible.
Further this also simplifies using the thumb keys in combos since all thumbkey bindings are now defined as MIRYOKU_THUMBKEY_$THUMBKEY
for the Layer-Tap binding and MIRYOKU_THUMBKEY_$THUMBKEY_KC
for the Tap binding.
Following an example configuration (custom_rules.mk
)
MIRYOKU_LAYERS=FLIP_MEDIA
MIRYOKU_THUMBKEYS_LAYER=LO=MOUSE,LI=MEDIA
MIRYOKU_THUMBKEYS_KEYCODE=RM=KC_DEL,RO=KC_BSPC
This flips the media layer while keeping all other layers and the thumb keys in normal order. It also switches the bindings for the MEDIA
and MOUSE
layers and switches Backspace and Delete.