rvaiya / keyd

A key remapping daemon for linux.
MIT License
2.9k stars 171 forks source link

While Capslock is held down, A and W pressed together should act as kp7 #863

Open Mohammad9760 opened 2 days ago

Mohammad9760 commented 2 days ago

Hi! this is my current config `[ids] *

[main] capslock = overload(capslock, esc) esc = capslock

[capslock:C] j = left k = down i = up l = right p = compose a = kp4 s = kp2 w = kp8 d = kp6 e = kp5 q = numlock`

the numpad keys move the mouse cursor when numlock is on, and I use wasd as the 8462 on the numpad however I want the diagonal ones (7, 9, 1, 3) to be mapped to wasd as well, so like when I hold W and A together it should act as numpad 7. is this something that's possible to do in Keyd?

and btw, is there a better way to move the mouse cursor with the keyboard?

nsbgn commented 2 days ago

You can use chords:

#...

[capslock:C]
w+a = kp7
# ...

Though this only works when they are struck simultaneously, so it might not be what you want.

and btw, is there a better way to move the mouse cursor with the keyboard?

You may be interested in https://github.com/rvaiya/warpd