You are not logged in.

#1 2017-07-30 09:57:06

clmn
Member
Registered: 2017-07-30
Posts: 3

Xorg updates clobber custom Xkb layouts and options

For a custom keyboard layout to work in Xkb/Xorg a line must be appended to /usr/share/X11/xkb/rules/evdev.xml.

The problem is that when Xorg is updated via pacman, this xml file is replaced. As a result, all custom keyboard layouts break each time Xorg is updated.

I'm pretty sure that this is a bug and that the solution is to have custom keyboard layouts defined in /etc/X11/xkb instead of /usr/X11/xkb. However, the only ticket I can find about this issue is from 2007: https://bugs.debian.org/cgi-bin/bugrepo … bug=438940

There are many people with this issue. This Google search brings up many relevant results: https://www.google.com/search?site=&sou … verwritten

Some believe that simply calling setxkbmap from, for example, an .xinitrc file can circumvent this. This isn't true, since the setxkbmap command is rather limited in comparison to custom layouts as utilized in the xorg.conf file. For instance, plugging in an external keyboard will break your layout unless you specify a section for that keyboard in xorg.conf, which relies on the layout name being present in evdev.xml.

Thanks.

Offline

#2 2017-07-30 10:09:30

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

Re: Xorg updates clobber custom Xkb layouts and options

This isn't a proper fix, just a hacky workaround but you could always create a pacman hook that appends the required line whenever the file is updated.


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 2017-07-30 10:34:31

clmn
Member
Registered: 2017-07-30
Posts: 3

Re: Xorg updates clobber custom Xkb layouts and options

slithery wrote:

This isn't a proper fix, just a hacky workaround but you could always create a pacman hook that appends the required line whenever the file is updated.

This is what I plan on doing tomorrow, actually. A real fix would be nice, though.

Offline

#4 2017-08-01 05:16:13

clmn
Member
Registered: 2017-07-30
Posts: 3

Re: Xorg updates clobber custom Xkb layouts and options

Bump.

Offline

#5 2017-08-01 06:30:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Xorg updates clobber custom Xkb layouts and options


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-08-02 12:33:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,213

Re: Xorg updates clobber custom Xkb layouts and options

"man pacman.conf", see NoUpgrade

Offline

Board footer

Powered by FluxBB