feat(extensions): most of the extensions implementation, by kdb424

This commit is contained in:
Kyle Brown authored and Josh Klar committed 2021-06-20 13:55:16 -07:00
1 parent 9821f7bcc3
commit e72d2b8c34
140 files changed
+3860 -2312

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Layers
Layers module adds keys for accessing other layers. It can simply be added to
the extentions list.
```python
from kmk.modules.layers import Layers
keyboard.modules.append(Layers())
```
## Keycodes
|Key |Description |
|-----------------|------------------------------------------------------------------------|
|`KC.DF(layer)` |Switches the default layer |
|`KC.MO(layer)` |Momentarily activates layer, switches off when you let go |
|`KC.LM(layer, mod)` |As `MO(layer)` but with `mod` active |
|`KC.LT(layer, kc)` |Momentarily activates layer if held, sends kc if tapped |
|`KC.TG(layer)` |Toggles the layer (enables it if no active, and vise versa) |
|`KC.TO(layer)` |Activates layer and deactivates all other layers |
|`KC.TT(layer)` |Momentarily activates layer if held, toggles it if tapped repeatedly |