I'm trying to switch left Ctrl key with caps permanently. But with ubuntu native keyboard layout switcher xmodmap did not persisted (this question). So now i just ditched native switcher and using setxkbmap command instead. I created a script:
#!/bin/bash setxkbmap -model pc104 -layout us,ru -option grp:alt_shift_toggle -option ctrl:swapcaps
It works just as I want to. But now i want to auto run it on system start up. But if I put this under Sturtup Applications it does not work. Apparently something else resets xkb map after my script at start up.
Does anyone know what triggers reset of xkb and how to get rid of it?