Skip to content

Latest commit

 

History

History
190 lines (141 loc) · 5.87 KB

Layers.md

File metadata and controls

190 lines (141 loc) · 5.87 KB

Layers provide a way to to change how keys behave.

You can switch between layers with the bar at the top of the configurator.

layers

Layers Shifting

Shifting activates a change but only while a key is held down.

This is most often seen on laptops. Many laptops have a Fn key that gives two possible actions to the top row.

For instance, normally F1 will behave as a function key (and ex open a help doc).

fkeys

However, while keeping Fn held down then F5 can act another action such as changing your screen brightness.

brightness

Layer shifting allow you to take this concept and apply it to any keys you want.

An Interactive Example

Here is a normal keyboard

  • All keys act as labelled.

  • While Fn is held, layer 1 activates

    • PgUp becomes Vol+
    • PgDn becomes Vol-
  • When Fn is no longer pressed, layer 1 deactiaves and the keys return to normal

?> Hover over the Fn key to see the layer shift

Fn Base Layer Layer 1

Layer Locking

Locking behaves just like num lock. They provide a way to toggle a behavior on or off. When a lock is activated one or more keys stay changed until the lock is deactivated.

Caps lock behaves in much this way. Changing between capital and lowercase letters.

For another example we can look at how a numpad acts. With num lock enabled all keys on the numpad act as numbers

numpad

However, when numlock is disabled then some of the keys act as arrows.

numpad-fn

Neither state changes how the symbols behave.

An Interactive Example

We will once again look at the same basic keyboard.

  • All keys act as labelled.

  • When f1 is pressed then the orange layer 2 is activated.

    • PgUp becomes LED+
    • PgDn becomes LED-
  • These keys continue to act this way after the f1 key is released.

  • Once f1 is pressed again then the layer will deactivate and the normal actions will apply.

?> Click the Fn key to enable or disable the layer lock

Fn Base Layer Layer 2

Layer Latching

Latching provides an middle ground between shifting and locking. A latch will activate a function layer but only for the next keypress.

Think of the Shift key on a phone keyboard capitalizing the next letter you tap.

shift

phone

Multiple Layer Interactions

With locks, latches, and shifts it is possible to end up with multiple layers active at the same time.

Each layer builds upon the ones below it applying extra changes ontop, much like in image editors such as Photoshop.

If any key is "clear" then the action from the layer below it will apply.

An Interactive Example

?> Check or uncheck the layers to see how keys behave

Layer 1 Layer 2
Base Layer
  • acts as PgUp
    • Set by the base layer and not overriden
  • acts as Home
    • Set by the base layer and not overriden
Layer 1
  • acts as Vol+
    • Overriden by layer 1
  • acts as Prev
    • Overriden by layer 1
Layer 2
  • acts as LED+
    • Overriden by layer 2
  • acts as Home
    • Set by the base layer and not overriden
Layer 1 & 2
  • acts as LED+
    • Overriden by layer 2
  • acts as Prev
    • Set by layer 1 (and not overriden by layer 2)

Videos

layers

locking