I created custom Cyrillic keyboard layout using Ukelele. It works fine except one problem - I can't switch to it using Caps Lock from english layout. I even don't have option "Use Caps Lock to switch to and from US" in keyboard preferences. Ctrl+space switches layouts ok. Default rus layout can be switched by Caps Lock.
How could I make my custom keyboard layout to switch by Caps Lock?
I didn't find a way to make it work. Also there is not promising topic in ukelele group: https://groups.google.com/d/topic/ukelele-users/rRPaOXQj8Hs/discussion.
Instead I installed Karabiner-Elements, make Caps Lock map to F19 and set F19 as layout switch in keyboard shortcuts. Works fine with my custom Ukelele layout and system English layout.