-
Notifications
You must be signed in to change notification settings - Fork 17
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
Keymap file ignored in XWayland windows (Macbook host / Linux client) #4
Comments
r-c-f
added a commit
that referenced
this issue
May 24, 2021
Per #4, xwayland gets angry if the minimum key drops below 8, so allow setting an offset to apply when processing keycodes.
r-c-f
added a commit
that referenced
this issue
May 24, 2021
Per #4, xwayland gets angry if the minimum key drops below 8, so allow setting an offset to apply when processing keycodes.
@r-c-f works perfectly, thank you! |
No problem, glad it works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a xkb keycodes file to translate from Mac to Linux and it works fine in native wayland windows, but the file is ignored in XWayland windows.
In swaywm/sway#5461 someone suggested that the keymap might be ignored by XWayland if there's errors in the keycodes file, so I ran
xkbcomp -xkb -I$HOME/.xkb/ ~/.config/waynergy/xkb_keymap
to check and I got the following error and warning:So the problem is that Mac sends keycodes in a range starting with 1, and X needs the range to start at 8. I think the only way to get this working would be for waynergy to somehow parse the keycodes coming from a Mac by adding 7 to them. This makes sense to me because the file included in
/usr/share/X11/xkb/keycodes/macintosh
handles it this way, where<AC01>
starts with 8 and it goes up from there in the same order as the keycodes file I derived from trial and error.Here's the contents of
~/.config/waynergy/xkb_keymap
:and the contents of
~/.xkb/keycodes/macbook
(derived from trial and error):The text was updated successfully, but these errors were encountered: