kbct icon indicating copy to clipboard operation
kbct copied to clipboard

Bind key to combination

Open Termack opened this issue 4 years ago • 8 comments

Hello, there are some characters in my keyboard that i can only get by using a combination of others.

So I would like to know if there is a way to create a bind to a combination of keys, something like this for example:

- keyboards: [ "AT Translated Set 2 keyboard"]

  layers:
    - modifiers: ['rightshift']
      keymap:
        apostrophe: rightalt + q

Termack avatar Nov 28 '21 16:11 Termack

Hey! I think I don't entirely get the idea.

So let's say you want to write symbol _, currently it requires Shift+-. Do you want to simulate Shift+- by using another combination? Is that what you mean?

samvel1024 avatar Nov 30 '21 14:11 samvel1024

So is it possible? This would be really useful.

filyp avatar Jan 25 '22 13:01 filyp

In case anyone is having the same problem, I found a workaround. I remap input combination to some unused single key. For me, unused keys where: hanja, henkan, katakana, hiragana, katakanahiragana, muhenkan, numlock, scrolllock, and you can probably find more.

Then, I set up a custom shortcut in my system from those keys to some combination. (In my case, I had to use ydotool because normal remapping doesn't work on wayland). Note that not all unused keys will be supported by the system, but the examples I gave above should work.

I hope someone finds it useful :)

filyp avatar Feb 02 '22 11:02 filyp

Hello @samvel1024 , I am not the original author of the question, but yes, that's also what I would like to do. For example, I would like to create the following series of symbols for the home-row:

~ [ { ( * <middle> * ) } ] |

Currently, I can do things like ( or [ because they map directly to the "basic" row of a standard qwerty keyboard. However { is [ + shift. It perfectly works with my config if I manually enable the layer and press shift, but it defeats a bit the purpose.

I would be glad to try implementing this. If you have any idea, I will take them.

Kineolyan avatar Jun 04 '22 13:06 Kineolyan

It's been a while since the developer has promised adding this feature, namely mapping one key to a combination of keys. Has there been any progress in this regard? Or has this application become abandonware?

Aqua1ung avatar Mar 25 '23 22:03 Aqua1ung

After discussing with the owner some times ago, he mentionned doing this on his free time. He may not have had free time recently. IMO, you can always use it as much as developed and fork it if you want new features.

Kineolyan avatar May 05 '23 10:05 Kineolyan

For those looking at this issue and wanting an alternative, you can consider keyd, light, allowing to reconfigure some keys, or kmonad, allowing a full config of the keyboard - like what QMK does.

Kineolyan avatar May 08 '23 17:05 Kineolyan