kmk_firmware icon indicating copy to clipboard operation
kmk_firmware copied to clipboard

[Enhancement] Refactor CgSwap

Open xs5871 opened this issue 2 years ago • 2 comments

Continuation of #768.

The current CgSwap module is a bit of mess concerning code quality and the current implementation doesn't easily allow for multiple mod- (or even potentially any key-) swaps. Suggestion: Refactor and handle any key (or at least any mod) swap.

xs5871 avatar May 12 '23 19:05 xs5871

@xs5871 Would this ModSwap or KeySwap module come with preset classes? I.e. AltGuiSwap, BackSwap (Backslash, Backspace)

dunk2k avatar May 14 '23 07:05 dunk2k

Ideally no, it would be simple enough that presets aren't needed. If you can pass a list of tuples to be switched + a mechanism to select them (similar to layers), then there's no need to have a class for every combination of keys.

xs5871 avatar May 25 '23 20:05 xs5871