You are not logged in.

#1 2019-10-27 09:57:35

LHP22
Member
Registered: 2019-10-08
Posts: 11

[SOLVED] Impossible to change default keyboard layout with X server

Hi there !

I've an azerty keyboard, and I try to change the default keyboard layout. But I've tried some tricks but nothing is working.

localectl --no-convert set-x11-keymap fr pc104

I've this one as .xinitrc :

[ -f /etc/xprofile ]  && . /etc/xprofile
[ -f ~/.xprofile ] && . ~/.xprofile
export XDG_SESSION_TYPE=x11
export GDK_BACKEND=x11
setxkbmap fr
exec gnome-session

and this on as .xprofile :

setxkbmap fr

But all these i've failed : always qwerty layout is enabled, and I must change manually.

Does anyone have an idea ?

Last edited by LHP22 (2019-10-27 10:38:35)

Offline

#2 2019-10-27 10:08:36

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Impossible to change default keyboard layout with X server

If you're running Gnome have you tried using its own keyboard settings?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-10-27 10:38:12

LHP22
Member
Registered: 2019-10-08
Posts: 11

Re: [SOLVED] Impossible to change default keyboard layout with X server

Stupid guy I am >.<"

The default keyboard layout of Gnome was on qwerty, I could try change this of X server >.<"

Thanks ! big_smile

Offline

#4 2019-10-27 10:47:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Impossible to change default keyboard layout with X server

You're not being stupid. In any sensible DE the X settings are adhered to - it's only Gnome and KDE that for some reason insist on overriding X with their own settings.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB