A Colemak layout for X11 customized for Swedish http://www.keyboard-layout-editor.com/#/gists/031f69bc7b4ec075ea42104654f5f80b
Ubuntu requires more file changes than Arch linux. Too not make this feel to messy I apply them as patches.
Change the files as needed, modify the create patch script and run it to create the patches then apply them as root. You need to keep the patches to be able to uninstall the patches using the uninstall patch