I've managed to create a custom keyboard layout for my language.

Now that the keyboard is in a state that I can share it. I don't know how to make it a redistributable package.

To add it to the official xkeyboard-config package, you would develop it as a patch for the xkeyboard-config package. See their code contribution guide; contributed layouts are made by patches on their bug tracker. You can clone the upstream repository with:

git clone git://anongit.freedesktop.org/git/xkeyboard-config
  • From a quick glance at your layout, I think you need to add the default keyword to the stanza definition (default xkb_symbols "basic"), to declare that layout the default for that file. Your file itself would be put in the symbols directory.

  • In addition to your new layout file, you'll need to add it to the rules templates (rules/base.xml.in or possibly rules/base.extras.xml.in -- the rules/evdev.xml file will be generated from the same template).

  • Doublecheck the project documentation for other specifics that I might have missed.


You could also add that patch to the Ubuntu source package apply it with the standard dpkg build tools. This would allow you to distribute your modifications to other Ubuntu users with minimal difficulty. See questions like How to create and maintain patch on Debian package? for more specifics.

  • Can your custom package-approach of the upstream one be used in this challenge: unix.stackexchange.com/q/346073/16920 ? – Léo Léopold Hertz 준영 Apr 11 '17 at 4:59
  • 1
    @LéoLéopoldHertz준영 sure. i'd strongly advise making your layout a new variant, rather than changing an existing one, but for personal use it's fine. – quixotic Apr 12 '17 at 13:59

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.