cajhin / capsicain

Powerful low-level keyboard remapping tool for Windows
334 stars 18 forks source link

Toggle Modifiers #56

Open mrcruz opened 2 years ago

mrcruz commented 2 years ago

On my current config I have modifiers dedicated to specific topics. MOD10 is for windows navigation. things like next tab, home, and close. There are moments that I would like to be able to toggle this modifier to keep navigating for a while and avoid keeping the Modifier pressed. I understand that this would add a state to the keyboard but it would help immensely my use case. I'm actually already doing that with the config feature, but that implies that I have two sections of the config with basically the same content.

What I would appreciate a lot would be something like the following syntax:

REWIRE CAPS MOD9 setModifierOn(...& .... ....)

and

COMBO APPS   [] > setModifierOn(...& .... ....)

And the state is kept until a MOD10 Down happens.

alenros commented 1 year ago

I wanted to use a layer that will toggle my home row into a numpad, and used this hack, that makes capslock toggle capsiccain on\off and also maps the keys to numbers.

GLOBAL capsicainOnOffKey CAPS [CONFIG_1] REWIRE Q 4 REWIRE W 5 REWIRE E 6 REWIRE A 7 REWIRE S 8 REWIRE D 9 REWIRE F 0 REWIRE 1 X