How to change the default LightDM keyboard layout for login screen?

I have an Endeavour OS Budgie laptop that I built initially with US Dvorak keyboard layout. I am trying to give that to someone and need to change the layout. In Budgie everything is all set. I set the Keyboard to have US English layout and everything works well. On login screen however, it defaults to dvorak and, while I can change it there, I don’t want the new user to have to do that every single time they reboot.

I tried:
localectl set-keymap us
localectl set-X11-keymap us
added display-setup-script=setxkbmap us in /etc/lightdm/lightdm.conf

Nothing seems to affect the login screen. When I changed the display manager to use sddm, it used the correct layout. When I changed back to lightdm it still uses dvorak as a default.

What am I missing? Please help!

1 Like

Found the answer here:Cannot set keyboard layout with localectl

The trick with lightDM is to edit the file /etc/defaul/keyboard
Can this be added to some sort of a list to get corrected? It’s not the default behavior of Arch, AFAIK.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.