This repository contains patches to the xkb configurtion files that define the keyboard layouts available in the X server. They add a variant called 'dvorak' to the swiss german keyboard layout. This is my own adaptation of the german dvorak layout to the peculiarities of the standard swiss german layout.
old_version=15.04
new_version=16.04
srcdir=$PWD
cd ubuntu
mkdir -p ${new_version}/orig
cd ${new_version}
cd /usr/share/
cp -r --parents X11/xkb/ ${srcdir}/ubuntu/${new_version}/orig/
cp -r --parents ibus/component/simple.xml ${srcdir}/ubuntu/${new_version}/orig/
cd -
cp -r orig new
cd new
patch --no-backup-if-mismatch -p1 < ../../${old_version}/dvorak.patch
# fix things if the old patch did not apply
cd ..
diff -urN --no-dereference orig/ new/ > dvorak.patch
cd /usr/share
sudo patch -p1 < ${srcdir}/ubuntu/${new_version}/dvorak.patch