I can only set separately: switching layouts on caps lock or swap escape and caps lock keys, but has no success in trying to do it simultaneously. The final variant I want is to get caps lock behavior like escape key and use escape key for layout switching.
I have tried something like this:
setxkbmap -option grp:switch,grp:caps_toggle,grp_led:caps,caps:swapescape us,ru