Le 14/11/2016 ? 12:49, Patrick Hess a ?crit :> XFCE user here, so I'm not sure if KDE tries to enforce its own settings > with > regard to the keyboard layout, but have you tried (as root): > > localectl set-x11-keymap <whatever name the Swiss-French layout > might have> pc105 nodeadkey > > This changes the X11 keyboard settings permanently for all users on the > system > and works fine with (at least) XFCE. > > PatrickThanks for your response. (Native german speaker here also.) I tried what you suggested: # localectl set-x11-keymap fr_CH-latin1 pc105 nodeadkey As is to be expected, this modifies /etc/X11/xorg.conf.d/00-keyboard.conf: # Read and parsed by systemd-localed. It's probably wise not to edit this file # manually too freely. Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "fr_CH-latin1" Option "XkbModel" "pc105" Option "XkbVariant" "nodeadkey" EndSection Unfortunately, to no avail. When I create a new user from here, KDE's keyboard still defaults to US. This looks like a CentOS bug to me: unable to define a non-US system-wide keyboard when using KDE. Cheers, Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
On 14.11.2016 14:33, Nicolas Kovacs wrote:> # localectl set-x11-keymap fr_CH-latin1 pc105 nodeadkey > > As is to be expected, this modifies /etc/X11/xorg.conf.d/00-keyboard.conf:Interesting, I didn't actually realize that myself before.> Option "XkbLayout" "fr_CH-latin1"According to this link https://wiki.manjaro.org/index.php?title=Configuration_du_clavier_apr%C3%A8s_l%27installation the XkbLayout should read "ch(fr)" instead of "fr_CH-latin1", as the system console and X.org seem to use a different notation for selecting the layout in this particular case: - Dans le terminal - Pour la Suisse romande: loadkeys fr_CH-latin1 - Dans X11 / Xorg - Configurer le clavier de mani?re permanente: Option "XkbLayout" "ch(fr)" Then, this should work as well: localectl set-x11-keymap 'ch(fr)' pc105 nodeadkey> This looks like a CentOS bug to me: unable to define a non-US > system-wide keyboard when using KDE.That could be possible, of course. On FreeBSD, with the keyboard layout configured the old-fashioned way via /etc/X11/xorg.conf, KDE does respect the system-wide settings. I would expect KDE to behave the same on CentOS. However, I only had to deal with easy layouts like "de" and "us" so far; Swiss-French might pose a bit more of a challenge. ;-) Patrick -- If you'd like to send me a private message, make sure to remove the "_lists" part from my address.
Le 14/11/2016 ? 17:33, Patrick Hess a ?crit :> That could be possible, of course. On FreeBSD, with the keyboard layout > configured the old-fashioned way via /etc/X11/xorg.conf, KDE does respect > the system-wide settings. I would expect KDE to behave the same on CentOS. > However, I only had to deal with easy layouts like "de" and "us" so far; > Swiss-French might pose a bit more of a challenge. ;-) > > PatrickI'm running Slackware on my main workstation, where I have a 90-keyboard-layout.conf file in /etc/X11/xorg.conf.d, and it looks like this: Section "InputClass" Identifier "keyboard-all" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "XkbLayout" "ch" Option "XkbVariant" "fr" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection But then, I'm also running Xfce on this machine, so I don't know if on the CentOS machine, the problem is related to localectl, to X.org or to KDE. I tried to replace the CentOS configuration stub with the one I have on the Slackware machine, but to no avail. The keyboard is still US. While it's not a big deal, of course, I'd rather avoid having to reconfigure all my users' keyboard layout by hand. Cheers, Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32