I am using the version from your github repo which I have forked. I noticed you had indeed updated the setxkb.sh script in the meantime, so I have now merged in the latest.
Here is what I observe:
In the system text entry settings, I have "English(Colemak[eD],Curl-DvbgHm ergo)". However this is effectively overridden by the setxb.sh script, which defines my custom mappings. I call this script on startup, and it works fine... until...
When I plug in the headset, I notice the following changes:
- The basic layout remains on Curl-DvbgHm but my AltGr/Extend layers are different and these revert back to the defaults.
- I have some keycode remappings in keycodes/evdev which are also lost.
I suppose this is not really a problem with your scripts, but rather an issue with Ubuntu itself: why does it feel the need to change anything related to keyboard settings whenever a USB device is plugged in? I think what is happening is it reverts back to the basic config selected in the "Text Entry" settings, so anything set with the script is lost.
I do have a suggestion though: probably there is no need to include the xkb-backup-2016-01-02 directory in the repository? It makes is awkward to deal with as after installation git thinks these are changed source files.
Last edited by stevep99 (25-Aug-2016 10:06:44)