I have a custom keyboard layout that I want to install like this:
$sudo apt install my-custom-kbd-layout
Is this possible with Debian?
Because I started writing some python script to automate the manual steps, but maybe I'm over complicating things. Is there a better way?
Edit: removed code
apt
, or 2) since it is Python, maybe you can reserve a PIP package specifically for this. – Stan Strum Jan 04 '18 at 16:27setxkbmap
to add the keyboard layout at runtime as an "addon" instead of modifying the system files manually as I do. But usingsetxkbmap
may be too difficult for a beginner and I don't want to make installing this keyboard layout difficult. I want to script the installation and make it as easy as installing a package. I don't care if it's a package or not but this looks easiest to me, for now. – aliopi Jan 04 '18 at 16:32apt install my-kbd-layout
and it will be there. Or maybe I should usesetxkbmap
or another approach if somebody knows better. Your 1) "push to repo" is a possibility. But the Debian people would have to accept it. And modifying system files might be bad. I should ask this on a Debian mailing list maybe, but I thought I would ask here before. – aliopi Jan 04 '18 at 17:12keyboards-rg
does it (apt-get source keyboards-rg
) and copy it. – angus Jan 05 '18 at 06:26xkb-data
that includes your changes. – quixotic Jan 09 '18 at 04:40