tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.98k stars 1.7k forks source link

LAYER action for Layer 0 #669

Open tmk opened 3 years ago

tmk commented 3 years ago

LAYER action for Layer0 doesn't make sense or not useful.

For example ACTION_LAYER_MOMENTARY(0) and ACTION_LAYER_TOGGLE(0) don't effect anything actually by design. These actions are not useful at all and just extist in vain.

How to return Layer0

Some users expect that they can "go to" Layer0 with the actions wrongly. But they have to disable all other layers than Layer0 using ACTION_LAYER_CLEAR() or ACTION_LAYER_SET(0).

The actions against Layer0 can be chaged for the inaccurate assumption. For example, we can change behavior of:

Keymap Editor

L0 and T0 are confusing for users and not usable at all, should be removed perhaps. Instead action like 'Layer Clear' should be added.

Layer actions needed:

Using '+' and '-' to indicate a layer enabled and disabled?: +L1, -L2, -Lall, ... for example