I prefer to have capslock as control. On startup of my session I perform
setxkbmap -layout us -variant altgr-intl -option compose:menu,ctrl:nocaps
which does that for me. On every suspend this information is lost again. The script has to be run again which I bundled together with my locking script.
There are a couple corner cases where it is still reset. So I would like to make my favorite layout the system wide default such that I do not have to occasionally scream as my control key (which has “capslock” printed on it) does not work any more.
The system is Fedora 23.
Can I set the system wide default layout to the exact layout I have when I run with setxkbmap
command? If now, how would I construct such a layout?