Comments on How to change the keyboard layout with Gnome and Arch linux?
Parent
How to change the keyboard layout with Gnome and Arch linux?
My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
Attempts
During the install I just done:
loadkeys fr-latin1
And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
I tried a lot things, like the below commands, but it seems that "nothing" append:
loadkeys fr-latin1
setxkbmap fr
localectl set-x11-keymap fr
localectl set-keymap fr-latin1
The content of /etc/X11/xorg.conf.f/00-keyboard.conf
is currently
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fr"
Option "XkbModel" "pc105"
Option "XkbVariant" "latin1"
EndSection
But the keyboard layout remains in QWERTY...
Additional materials
In /etc/locale.gen
file, only these 4 lines are uncommented:
en_US.UTF-8 UTF-8
en_US ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-1
Output of locale-gen
command:
Generating locales...
en_US.UTF-8... done
en_US ISO-8859-1... done
fr_FR.UTF-8... done
fr_FR ISO-8859-1... done
Generation complete.
LANG
variable created with:
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
N.B. I am completely new to Arch.
Post
I'd forget about messing around with console commands and X configuration files, and just change the keyboard layout in the GNOME Settings panel:
You can access this by hitting the Windows key and typing "keyboard", at which point you can select Settings -> Keyboard in the Activities overview window. You can use the +
button at the bottom to add new layouts, and the vertical ...
buttons to remove unwanted layouts.
It seems that by default the +
button only lists other English layouts if the main language is English, but you can scroll down and choose Other
if you want the full list of available layouts to appear (including French (AZERTY)
as I have chosen in the image).
Note that I'm using Ubuntu, but I assume that GNOME on Arch behaves the same way — this configuration dialog is a GNOME feature, not something specific to the distribution (unless the distro has done something weird with their GNOME build).
0 comment threads