You are not logged in.

#1 2025-02-09 12:04:28

craftyneil
Member
Registered: 2025-02-09
Posts: 2

My keyboard type in qwerty even if everything is set to azerty

During the installation, I set the keyboard layout to be fr (azerty). Just after the installation, I could type in azerty in the tty and in the login screen after the reboot. But when I was connected in my session, my keyboard started typing on qwerty.

When I try to change the keyboard layout through loadkeys or setxkbmapm I get this

```
[arctique@archlinux ~]$ loadkeys fr
Coudn't get a file descriptor referring to the console
[arctique@archlinux ~]$ setxkbmap fr
WARNING: Running setxkbmap against an Xwayland server
```

My /etc/vconsole.conf looks like this:
```
KEYMAP=fr
XKBLAYOUT=fr
XKB;ODEL=pc105
XKBOPTIONS=terminate:ctrl_alt_bksp
```

Last edited by craftyneil (2025-02-09 12:04:59)

Offline

#2 2025-02-09 17:33:30

shbon
Member
Registered: 2022-10-09
Posts: 11

Re: My keyboard type in qwerty even if everything is set to azerty

Try setting the environment variable XKB_DEFAULT_LAYOUT (covers both X11 and Wayland sessions):

E.g. In your ~/.profile

export XKB_DEFAULT_LAYOUT=fr

Offline

#3 2025-02-09 17:44:47

LightJack05
Member
Registered: 2024-09-15
Posts: 5

Re: My keyboard type in qwerty even if everything is set to azerty

In addition to the reply by shbon, I'd like to mention that under Wayland, configuring the keyboard layout is the job of the compositor, i.e. your Desktop Environment or Window manager. The configuration for that will differ depending on which one you installed. (It may or may not use the XKB_DEFAULT_LAYOUT env variable.)

Offline

#4 2025-02-10 17:24:17

craftyneil
Member
Registered: 2025-02-09
Posts: 2

Re: My keyboard type in qwerty even if everything is set to azerty

Even after trying the export solution, it didn4t worked. I saw that every time I reboot and then I use this command

setxkbmap -print

, my keyboard was switched back to qwerty after the reboot.

PS: I`m on Hyprland

Last edited by craftyneil (2025-02-10 17:24:45)

Offline

#5 2025-02-10 17:38:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,428

Re: My keyboard type in qwerty even if everything is set to azerty

neither loadkeys not setxbkmap is reelvant on wayland, some compositors will pick up /etc/X11/xorg.conf.d/00-keyboard.conf, https://wiki.archlinux.org/title/Xorg/K … _localectl but you can configure it in your hyprland config, https://wiki.hyprland.org/Configuring/U … rd-layouts

Offline

Board footer

Powered by FluxBB