You are not logged in.

#1 2020-12-30 08:23:30

Yann21
Member
Registered: 2020-06-12
Posts: 28

[SOLVED] Remap key combination

I would like to remap <C-m> to enter for my whole system. So far I've tried two variations of an xbindkeysrc file:

"echo key Return | xte"
      m:0x14 + c:47

"xdotool key Return"
      m:0x14 + c:47

They work but both produce very laggy results.

Then I tried creating my own symbols and types in xkb:

partial
xkb_types "ctrl_level2" {
    Virtual_modifiers Control;

    type "CTRL_LEVEL2" {
        modifiers= Control;
        map[Control]= Level2;
        level_name[Level1]= "Base";
        level_name[Level2]= "Control";
    };
};
partial modifier_keys
xkb_symbols "custom_return" {
    key <AC10> {
        type[Group1] = "CTRL_LEVEL2",
        symbols[Group1] = [m, Return]
    };
};

I got closer but it types <C-Return> instead of just <CR> which collides with yet another binding in firefox.
Finally, I tried using key-mapper-git from the AUR but this one doesn't handle key combination only single-key remapping.

Any idea of how I could either make xbindkeysrc less laggy, xkb drop the ctrl, or use another program? Thanks in advance.

Last edited by Yann21 (2021-01-03 17:05:46)

Offline

#2 2021-01-03 17:03:48

Yann21
Member
Registered: 2020-06-12
Posts: 28

Re: [SOLVED] Remap key combination

After looking for a fourth option namely XMonad.Util.Paste (sendKey), it is autokey that gets the grand title of working key remapper in the end.

yay -S autokey-gtk

Instructions here...

Last edited by Yann21 (2021-01-03 17:06:11)

Offline

#3 2021-07-25 18:34:54

Aetnaeus
Member
Registered: 2021-07-25
Posts: 7

Re: [SOLVED] Remap key combination

Consider using https://github.com/rvaiya/keyd for this. It is a system wide solution and provides fairly granular control.

Offline

Board footer

Powered by FluxBB