2022-04-09 05:09:55 +02:00
|
|
|
# Ctrl Gui Swap
|
|
|
|
This module allows to swap Ctrl with Gui and vice versa. This will reset on restart to the default implementation
|
|
|
|
|
|
|
|
## Enabling the module
|
|
|
|
```python
|
|
|
|
from kmk.module.cg_swap import CgSwap
|
|
|
|
# cg_swap disabled on startup
|
|
|
|
cg_swap = CgSwap()
|
|
|
|
# cg_swap enabled on startup
|
2022-04-09 05:13:57 +02:00
|
|
|
# cg_swap = CgSwap(cg_swap_enable=True)
|
2022-04-09 05:09:55 +02:00
|
|
|
keyboard.modules.append(cg_swap)
|
|
|
|
|
2022-04-09 05:34:24 +02:00
|
|
|
keyboard.keymap = [
|
|
|
|
[
|
|
|
|
KC.CG_SWAP, # swap ctrl and gui
|
|
|
|
KC.CG_NORM, # unswap ctrl and gui
|
|
|
|
KC.CG_TOGG, # toggles ctrl and gui swap
|
|
|
|
],
|
|
|
|
]
|
2022-04-09 05:09:55 +02:00
|
|
|
```
|
2022-04-09 05:34:24 +02:00
|
|
|
|