Comments (4)
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 struct multi_rule.{down,up}_press
but it requires slight coding since it currently makes possible mapping multiple keys only to a single key press.)
from interception-k2k.
Basically what I want to achieve is the following:
caps+h/j/k/l -> left/down/up/right
caps+b/w -> ctrl+b/w
caps+anything else -> I don't care
from interception-k2k.
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) },
from interception-k2k.
Great!
from interception-k2k.
Related Issues (9)
- How do you use it? HOT 8
- changing key up/down order for tapping HOT 6
- broken configuration for multitple keyboards HOT 8
- KEY_SPACE and HJKL into ARROWS HOT 3
- How to map a combination of 2 keys for a string ? HOT 2
- Shift + Esc to Tilde Character? HOT 2
- Not working on Anne Pro 2 HOT 6
- Decreasing delay of a tap remap HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interception-k2k.