You are not logged in.
Pages: 1
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:47They 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
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-gtkInstructions here...
Last edited by Yann21 (2021-01-03 17:06:11)
Offline
Consider using https://github.com/rvaiya/keyd for this. It is a system wide solution and provides fairly granular control.
Offline
Pages: 1