-
Notifications
You must be signed in to change notification settings - Fork 173
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
Using keyd for key-remapping breaks warpd #242
Comments
You need to start warpd after the virtual device has been created. This usually isn't a problem if you start keyd as a system service before launching the X session (as inteded). Running keyd using sudo in your xsession is a bad idea, you should create an openrc script and treat it like any other privileged daemon. You should also avoid setting See also #105. Edit: Apologies, the above is no longer true. warpd used to rely on a xinput loophole which was sensitive to hotplugging for its grab logic, but that is no longer the case. The initialization order shouldn't matter as long as keyd is not restarted while warpd is in one of its active modes. My recommendations above still apply for other reasons, though your configs should work as is unless you are mixing keyd and X input logic (which is a common mistake). Make sure other remapping tools aren't running (e.g xcape, xmodmap invocations, etc). |
I set it up as an openrc-service and got it to start before display-manager.
All works well until warpd grabs input (in normal or hint mode). Until I activate warpd everything works well, key-remap is in effect, I can use caps-lock as ctrl and esc as caps-lock. Once activated, keystrokes still go to the window in focus. I can see them being typed on the terminal below. Because I continue to access the terminal, I tried stopping keyd while warpd hint-mode was active and warpd started to process keystrokes as soon as keyd stopped. Are there any diagnostics I can perform / input I can provide that'll help diagnose this? |
Thanks. It looks like this was a regression. It should be fixed in the latest keyd commit. |
@rvaiya can you point me to the commit you are using locally? I'll use that for now until you have a chance to fix this. |
To clarify, this has already been fixed on master. |
Pulled the latest, it works great! thanks a lot! 🙇♂️ |
Sounds like this is something wrong in my local env. Keyd in isolation works great, I use basic config
and
warpd
works great in isolation too (withxmodmap
).One of the (possibly unexpected) things I do is, instead of setting it up as a systemd service (I use openrc locally, btw) I launch it manually this way (inside the X session).
I launch
warpd
the same way tooIt all works until
warpd
grabs keyboard in say hint or normal mode. Whenkeyd
is in use,warpd
does not receive any keystrokes at all.Here is my warpd config
I run xorg-server version
21.1.3-r2
and linux-kernel5.17.0
.Is there something inherently wrong with the way I have set it up?
The text was updated successfully, but these errors were encountered: