Search notes:

/usr/share/X11/xkb/rules

It seems that entries that match grp:.*toggle can be used to specify what triggers the change of a keyboard layout.

Index