Dear EndeavourOS community,
I have recently tried to change the keyboard layout on my EndeavourOS (BSPWM) by following the instructions described in the article “Xorg/Keyboard configuration” of the archlinux wiki and by looking up for solutions on different forums, but unfortunately to no avail.
Below, you can find the keyboard layout settings I have used till the present day, which I received by entering localectl status
:
System Locale: LANG=en_US.UTF-8
VC Keymap: sg
X11 Layout: ch
Listed below are the XKB settings I obtained from setxkbmap -print -verbose 10
:
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc105
layout: ch
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwertz)
types: complete
compat: complete
symbols: pc+ch+inet(evdev)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwertz)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+ch+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
To set the desired system default keyboard mapping for X11 and the virtual console, I used the following command:
localectl set-x11-keymap us "" altgr-intl
I verified, whether the changes were applied by using localectl status
; the command displayed the desired settings. Additionally, I inspected /etc/vconsole.conf
and /etc/X11/xorg.conf.d/00-keyboard.conf
; again, the expected changes were applied to these files.
However, after rebooting the system, the console and X11 keyboard layouts were not set to the values specified in /etc/vconsole.conf
and /etc/X11/xorg.conf.d/00-keyboard.conf
.
While checking the XKB settings I noticed, that the old settings were being used, although the files /etc/vconsole.conf
and /etc/X11/xorg.conf.d/00-keyboard.conf
contain the correct specifications.
I assume, the XKB settings are being overridden by the tools provided by EndeavourOS, since a colleague of mine, who is using Arch Linux and not EndeavourOS, had no issues setting the keyboard layout with localectl
.
To ensure that the desired XKB settings are being applied correctly every time I log in, I added the following command to my bspwmrc
:
setxkbmap -layout us -variant altgr-intl
This solution seems to work fine after I log in, but during the login process (LightDM) the wrong keyboard layout is used.
The current method does not work as preferred, therefore I am seeking for a solution which uses the localectl
command and sets the keyboard layout without any issues.
Thank you in advance!