You are not logged in.

#1 2019-08-02 13:29:45

meowxiik
Member
Registered: 2018-12-05
Posts: 9

[SOLVED] How to package keyboard layouts?

Hey,

I wanted to create a PKGBUILD for this layout. However I soon ran into the issue that I cannot just copy base.lst into /usr/share/X11/xkb/rules/base.lst and base.xml into /usr/share/X11/xkb/rules/base.xml. An install script in the repo does just that.

A workaround comes to mind, but sounds hacky at best: Create a post-install script which would update these files. But that would be pretty hard to track plus if extra/xkeyboard-config got updated it would likely overwrite the file.

How would one package a keyboard layout that needs to add itself base.lst and base.xml?

Last edited by meowxiik (2019-08-02 13:52:24)

Offline

#2 2019-08-02 13:52:11

meowxiik
Member
Registered: 2018-12-05
Posts: 9

Re: [SOLVED] How to package keyboard layouts?

Alright, apparently you do not need to edit the base.lst and base.xml files, unless you need to change an existing layout.

So what anyone can do is add custom layouts, by copying them into /usr/share/X11/xkb/symbols/, but you cannot change existing layouts using this method.

Package https://aur.archlinux.org/packages/xkb-qwerty-fr/ does just that.

Offline

Board footer

Powered by FluxBB