-
Notifications
You must be signed in to change notification settings - Fork 312
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
WSLGd: load keymap settings from .wslgconfig into weston.ini #1046
base: main
Are you sure you want to change the base?
Conversation
Hi. we don't want to expose weston.ini directly from Windows side, this is why we have exposed only certain configuration via .wslgconfig. If the configuration of default keyboard is necessary, please expose it via .wslgconfig, thanks! |
Introduce a new "weston-keyboard" section in .wslgconfig where you can configure weston/xkb keymap settings that will be used as a fallback if no xkb mapping can be found for current keyboard layout. Syntax is the same of weston.ini(5). Only keymap related key-value pairs are imported into WSLG system weston.ini, anything else is ignored.
716a1b1
to
c4b1453
Compare
@hideyukn88 see the new commit, it should address your concerns. The idea is to add a new This way only keymap related settings are merged into weston.ini instead of exposing the full config file to the user. This obviously depends on microsoft/weston-mirror#144 being merged as at the moment "us" layout is hardcoded in the rdp backend if layout mapping fails. |
@hideyukn88 any feedback on the latest proposed changes? now that the other PR has been merged (thanks!) it would definitely make life easier for us custom layout users |
@fargiolas, currently we are evaluating the idea to have /etc/wslg.conf, similar to WSL's /etc/wsl.conf, inside user-distro filesystem, so we could do this utilizing that, so please hold on, thanks! |
That would be great! Thanks for the update! |
I'm looking forward to this update |
Allow user to customize weston settings by providing a
.weston.ini
file in User Profile directory.The idea is to give advanced users an easy way to configure a keymap to fallback to if weston rdp backend logic fails to find a mapping between current keyboard layout and XKB ones. See microsoft/weston-mirror#144 for further details.