User Tools

Site Tools


FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)
Translated by Google. Revise later.

Layer (important)

One of the important features of TMK is the layer. Understanding and using the layer is the key to using the keyboard. Don't rush to understand all the contents of this article at a glance, the actual use of the keyboard process will gradually deepen understanding. supports 8 layers by default, from Layer 0 to Layer 7.

Keymap: 8 Layers                   Layer: Keymap
-----------------                   ---------------------
     ____________ priority                 _______________________
    /           / | High                  / ESC / F1  / F2  / F3   ....
 7 /___________// |                      /-----/-----/-----/-----
 6 /___________// |                     / TAB /  Q  /  W  /  E   ....
 5 /___________/  |                    /-----/-----/-----/-----
 :   _:_:_:_:_:__ |               :   /LCtrl/  A  /  S  /  D   ....
 :  / : : : : : / |               :  /  :     :     :     :
 2 /___________// |               2 `--------------------------
 1 /___________// |               1 `--------------------------
 0 /___________/  V Low           0 `--------------------------


Each layer has a number of buttons on it, for a total of 8 layers.

Two important points: status, priority

In actual use, the operation similar to Fn+1=F1 is realized by switching the state of the layer. Each layer has two states of on or off (one of the layers is the default layer, and the default layer is always on. status). When we press a button, it is decided by the keyboard state and the button matrix.

Layers are prioritized, with layer 7 having the highest priority and layer 0 having the lowest priority. When a button is pressed, the button is searched from the high priority, and if the layer is turned on and there is a button at the corresponding position, the keyboard outputs the button.

For example, the operation of Fn+1=F1: Layer 0 is generally the default layer, which is enabled by default. In this example, the actual Fn corresponds to L1, which is the instant start layer 1 (which will be mentioned later in the actual setting). Then, its actual operation logic is   When Fn(L1) is pressed, layer 1 is turned on, and the state of the eight layers is that layer 0 and layer 1 are on, and the others are off.   Press “1” again, from the top to the bottom, to layer 1, layer 1 is turned on, and this button is set to F1, output F1.   Release Fn(L1) and close layer 1. At this time, only the default layer of layer 0 is on. Pressing 1 at this time will only output 1.

By default, the button is transparent if it is not set, so it will search for the button to the low priority layer. If you don't want it to be checked, just want that button to be invalid, you can set the button to disable in that layer. As shown below, the key in the blue box is set disable, you can also use the red box key if you want to reset it back to transparent.

en/edit-keymap/layers.txt · Last modified: 2019/02/09 09:18 by yangdigi