You are not logged in.
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
Try setting the environment variable XKB_DEFAULT_LAYOUT (covers both X11 and Wayland sessions):
E.g. In your ~/.profile
export XKB_DEFAULT_LAYOUT=frOffline
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
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
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