You are not logged in.

#1 2026-05-25 08:36:21

seekawan
Member
Registered: 2026-05-25
Posts: 4

[SOLVED] Sway ignoring keyboard variant

Hi there,
I wanted to know if you could help me on this issue.
My locale is as follows :

 localectl status
System Locale: LANG=en_US.UTF-8
    VC Keymap: us-acentos
   X11 Layout: us
    X11 Model: pc105
  X11 Variant: intl
  X11 Options: terminate:ctrl_alt_bksp

I previously used KDE, and it work as intended with for example dead keys and right alt being alt-gr.
Now I installed Sway and got it running without any issues, except for the fact that here the whole desktop seems to ignore the fact that my system is on us-acentos and not us.
Every app ignore it as well, it means might right alt is just regular alt and `e gives "`e".

Since I did not change the locale, I am a bit lost as to why it does not work.
Feel free to ask me questions and thanks for the help

Last edited by seekawan (2026-05-26 08:05:12)

Offline

#2 2026-05-25 08:47:06

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 319
Website

Re: [SOLVED] Sway ignoring keyboard variant

I think you have to have the config for sway itself.

Check ~/.config/sway/config or ~/.sway/config and then you need an input section

input type:keyboard {
    xkb_layout us
    xkb_variant intl
}

Last edited by SimonJ (2026-05-25 08:48:09)


Rlu: 222126

Online

#3 2026-05-25 13:49:51

seekawan
Member
Registered: 2026-05-25
Posts: 4

Re: [SOLVED] Sway ignoring keyboard variant

Oh right I'll try and keep you posted

Offline

#4 2026-05-25 19:22:50

seekawan
Member
Registered: 2026-05-25
Posts: 4

Re: [SOLVED] Sway ignoring keyboard variant

SimonJ wrote:

I think you have to have the config for sway itself.

Check ~/.config/sway/config or ~/.sway/config and then you need an input section

input type:keyboard {
    xkb_layout us
    xkb_variant intl
}

Thank you very much thats the solution héhé.
That said weird that sway does not inherit system locale

Offline

#5 2026-05-25 23:57:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,197

Re: [SOLVED] Sway ignoring keyboard variant

The locale is not inherently tied to the keyboard layout and parsing X11 config files instead would be a specific implementation that doesn't necessarily hold or exist on wayland.

In any case, please mark as [SOLVED] by editing the title in your first post.

Offline

#6 2026-05-26 08:05:30

seekawan
Member
Registered: 2026-05-25
Posts: 4

Re: [SOLVED] Sway ignoring keyboard variant

V1del wrote:

The locale is not inherently tied to the keyboard layout and parsing X11 config files instead would be a specific implementation that doesn't necessarily hold or exist on wayland.

In any case, please mark as [SOLVED] by editing the title in your first post.

Done, have a good day

Offline

Board footer

Powered by FluxBB