I'm trying to install a custom keyboard layout without sudo access, as I described in Is it possible to use a custom keyboard layout without sudo access? If so, how?, and I have a specific question about the
setxkbmap command that the current answer says may well work.
More specifically, the man page for the command gives you the ability to specify a rules file:
Specifies the name of the rules file used to resolve the requested layout and model to a set of component names.
However, it doesn't say exactly what kind of file one is meant to put on there, and I'm struggling to make sense of this option.
As far as I can figure out, this is meant to be either
/usr/share/X11/xkb/rules/xorg, or its alias
/usr/share/X11/xkb/rules/base, and indeed if I copy all of
~/xkb/ and then run something like
setxkbmap -model pc105 -layout "gb" -variant "extd" -rules ~/xkb/rules/base
then it seems to work.
However, I'm not sure at all of how to modify that file. On machines where I have sudo access I follow this tutorial: I make a variant of the
gb keyboard inside of
xkb/symbols/gb, and I add the variant into
<variant> <configItem> <name>custom</name> <description>English (UK, custom)</description> </configItem> </variant>
xkb/rules/base file, however, there is no obvious place to include such a variant, and indeed other related
gb keyboard variants such as
intl, which appear e.g. in
xkb/rules/evdev.lst, are nowhere to be seen.
So: how can I specify a file in the
-rules file option that enables me to set my own variant? (without sudo access, unfortunately)