Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mohammad9760 opened this issue Oct 24, 2024 · 4 comments

Comments

@Mohammad9760
Copy link

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
Copy link

nsbgn commented Oct 24, 2024

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
Copy link
Author

Mohammad9760 commented Oct 28, 2024

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
Copy link
Author

@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
Copy link

nsbgn commented Nov 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants