Coder Social home page Coder Social logo

Comments (4)

zsugabubus avatar zsugabubus commented on June 26, 2024 1

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.

kabouzeid avatar kabouzeid commented on June 26, 2024

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.

kabouzeid avatar kabouzeid commented on June 26, 2024

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.

zsugabubus avatar zsugabubus commented on June 26, 2024

Great!

from interception-k2k.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.