-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bindings to keysyms are layout-dependent #8275
Comments
Or maybe this is an incorrect behavior on the i3 side, since they have |
A keysym (key symbol) doesn't identify a physical key. It identifies the result of translation a key according to a keyboard layout. A keycode identifies a physical key. One could write a full config with keycodes rather than keysyms, but that's not what |
Right, but from my everyday experience on i3 I understand now the use case for binding to letters, French layout is a good example, do I understand that you have it as the only layout? |
I don't remember what i3 does but probably it does Some people have French as the only layout, some people have both French and English (personally I only have English). |
Got it, thanks! But what is the difference between |
|
I understand now, thanks. I still think that for i3 compatibility it would've been best to keep the same behavior, but I get why you didn't do that. I'll leave this thread open for a while in case someone else would be interested. |
Hi, I've been using Sway on and off for a while already, but I wanted to understand the reason for making bindings layout-dependent.
Let's say for example a user sets a key binding to open an application menu the same way they did it in i3:
This will only work with English keyboard layout. If they have a setup with multiple layouts like with an additional Cyrillic layout the menu wouldn't be called unless they switch back to English. To avoid this it is suggested to use
bindsym --to-code
in the man page, but it's not straightforward for the people who come from i3 and I've found multiple related issues here before posting this.So roughly I have these questions:
The text was updated successfully, but these errors were encountered: