I'm installing Arch Linux, but I have a problem with the installation of my display manager, lightdm.
When I install and enable lightdm, I think the keyboard layout changes from Portuguese to US.
Changing the keymapping with:
# localectl set-locale LANG=pt_PT.UTF-8
only works until lightdm launches, then the keymapping reverts to US. The same occurs when I try to change it permanently by changing to KEYMAP=br-latin1 with:
# sudo nano /etc/vconsole.conf