Skip to content
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

Unable to set keyboard parameters when locale1-xkb-config is used #21

Closed
Sunderland93 opened this issue May 21, 2023 · 1 comment
Closed

Comments

@Sunderland93
Copy link

Hello and thanks for that awesome project! I have a problem with locale1-xkb-config. When it enabled (and launched with https://github.com/alebastr/sway-systemd/blob/main/config.d/95-system-keyboard-config.conf.in), I'm unable to change my keyboard layout, variant, and other parameters in Sway config. localectl output:

System Locale: LANG=ru_RU.UTF-8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105

And this is in my Sway config:

# Keyboard layout
  input type:keyboard {
   xkb_layout us,ru
   xkb_options grp:caps_toggle
}
@alebastr
Copy link
Owner

locale1-xkb-config makes Sway follow the global keyboard options set with localectl, and by virtue of being a script it works after the sway configuration is parsed/applied. I.e. it will always overwrite your configuration for input type:keyboard.

Either you want system-wide keyboard layout and thus have to use localectl set-x11-keymap "us,ru" "" "" "grp:caps_toggle", or you don't really need the locale1-xkb-config :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants