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 the ability to change keyboard layout while sway is running #1242
Comments
This has been discussed before, and currently is not possible. It might become an option once sway migrates to wlroot. |
Use something to this effect.
Read the XKB manual. |
I use a very customized keyboard layout, and being able to change the keyboard layout at run time would be very handy in a couple of situations:
Are there plans to support this with wlroots? Is there a way I can contribute? |
The plan is to support this in wlroots. The best place to help out wouldn't be keyboard related, but on wlroots as a whole (because sway won't switch until every feature is done, so it won't benefit from the features you want until then). To help, pick something to do from here: swaywm/wlroots#9 We collaborate over IRC in #sway on freenode, be there. |
This is now also pissible with the sway configuration. It took me some time to figure it out thats why I am posting it here:
(it is documented in the sway input man page: https://jlk.fjfi.cvut.cz/arch/manpages/man/sway-input.5) Possible switches:
source: https://jlk.fjfi.cvut.cz/arch/manpages/man/xkeyboard-config.7 |
Is it now possible to change keyboard layouts with swaymsg? I am not happy with the proposed toggles here and I'd like to use bindsym instead. |
It should be Also, to set the variant for each layout:
See https://unix.stackexchange.com/questions/197595/setxkbmap-multiple-layouts-with-different-variants. |
Yes, you can do this. It's a bit wonky, I noticed I had to explicitly set |
With the latest update |
We never shipped these files. Maybe they were shipped by your distribution. |
Okay, I just filled a bug with my distribution at manjaro-sway/manjaro-sway#112 Is the |
As far as I can tell, right now the only way to change the keyboard layout is to restart sway. It would be nice if there was a way to change it through swaymsg.
The text was updated successfully, but these errors were encountered: