rename to cg_swap and added docs
This commit is contained in:
parent
3f0283422d
commit
6002ad33e1
13
docs/cg_swap.md
Normal file
13
docs/cg_swap.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# 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
|
||||||
|
# cg_swap = CgSwap(true)
|
||||||
|
keyboard.modules.append(cg_swap)
|
||||||
|
|
||||||
|
```
|
@ -2,7 +2,7 @@ from kmk.keys import KC, ModifierKey, make_key
|
|||||||
from kmk.modules import Module
|
from kmk.modules import Module
|
||||||
|
|
||||||
|
|
||||||
class SwapKeys(Module):
|
class CgSwap(Module):
|
||||||
# default cg swap is disabled, can be eanbled too if needed
|
# default cg swap is disabled, can be eanbled too if needed
|
||||||
def __init__(self, cg_swap_enable=False):
|
def __init__(self, cg_swap_enable=False):
|
||||||
self.cg_swap_enable = cg_swap_enable
|
self.cg_swap_enable = cg_swap_enable
|
Loading…
x
Reference in New Issue
Block a user