rvaiya / keyd

A key remapping daemon for linux.
MIT License
3.01k stars 174 forks source link

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

Open Mohammad9760 opened 1 month ago

Mohammad9760 commented 1 month 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 4 weeks 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

Mohammad9760 commented 3 weeks ago

so it might not be what you want.

indeed.

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

I will check it out thanks.

Mohammad9760 commented 1 week ago

@nsbgn hey it's me again, is there a way I can scroll? I looked through the keyd list-keys and I found there are mouseback and mouseforward but I don't really know what they are, is it possible to do mouse scrolls on keyboard? if yes how can I bind some keys for that in keyd? thank you

nsbgn commented 1 week ago

In general you can use keyd monitor to check which events are emitted, but in this case I don't think scroll events are supported yet, see #544