-
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
Add a command to translate keysyms to keycodes universally #5409
Comments
The issue of my specific use case is solved by mapping a variable via I suppose that lack of such a command proposed in this post is not actually an issue as I don't think there are any other use cases for it, so I guess I should close the issue. |
You can also use blocks like so:
|
True, but one can't put a |
The problem
I use multiple keyboard layouts, and a binding like
bindsym $mod+w thing
works only on the Latin layout, so pressing$mod+ц
- same 2 keys but on another layout - doesn't trigger the binding.As a result, in contrast to i3, to be able to reasonably use Sway, I have to append
--to-code
to every single instance ofbindsym
. This becomes annoying quickly, and makes it hard to make my i3 and Sway configs matching, because tools likediff
andvimdiff
highlight all bindings as different.I did read the part of wiki that mentioned it - it doesn't seem to suggest any other way.
bindcode
also exists, but, asbindsym --to-code
, it is still a different command to i3'sbindsym
. I am looking for a way to use identical binding lines across both configs, which neither solutions seem to provide.Proposed solution/enhancement
I think it would be reasonable to add a command like
keysyms_to_codes 1
to be able to switch the behavior to the one seen in i3 without having to modify every single binding.When such a command is used,
--to-code
would be ignored, and--to-sym
(or something) would allow using the original untranslated behavior for specific bindings.The text was updated successfully, but these errors were encountered: