-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map to key + modifiers #10
Comments
Is there any good reason to not to do that? I mean, if you will not press CapsLock with other keys simultaneously, does it count whether it is always Ctrl or not? (Otherwise it may be possible with |
Basically what I want to achieve is the following: caps+h/j/k/l -> left/down/up/right caps+anything else -> I don't care |
So I got something working now, the first pipe maps caps to right ctrl, and the second pipe overwrite right ctrl + hjkl. It's fine because I'm never using right ctrl anyways. // interception-caps2rightctrl/tap-rules.h.in
{ .base_key = KEY_CAPSLOCK, .tap_key = KEY_ESC, .repeat_key = KEY_RIGHTCTRL, .hold_key = KEY_RIGHTCTRL, .hold_immediately = 1 }, // interception-rightctrlhjkl2arrows/multi-rules.h.in
{ .keys = { KEY_RIGHTCTRL, KEY_H }, TO_KEY(KEY_LEFT), DOWN_IFF_ALL_DOWN(2) },
{ .keys = { KEY_RIGHTCTRL, KEY_J }, TO_KEY(KEY_DOWN), DOWN_IFF_ALL_DOWN(2) },
{ .keys = { KEY_RIGHTCTRL, KEY_K }, TO_KEY(KEY_UP), DOWN_IFF_ALL_DOWN(2) },
{ .keys = { KEY_RIGHTCTRL, KEY_L }, TO_KEY(KEY_RIGHT), DOWN_IFF_ALL_DOWN(2) }, |
Great! |
Is it possible to map for example caps+w to ctrl+w without remapping caps to ctrl for all keys?
The text was updated successfully, but these errors were encountered: