Input Source in System Preferences of the Mac

please

I HAVE HEBREW KEYBOARD LAYOUT (input source in system preference of the mac)
AND I HAVE ENGLISH KEYBOARD LAYOUT

in mac big sur

can i create macro with keyboard trigger will change (or stay if it on English KEYBOARD ) on English

and another macro with different keyboard trigger change (or stay if it on Hebrew KEYBOARD)
to Hebrew

Hi,
If I'm understanding correctly, you can do this:

The first action is not needed. I just put it here to let you see the value of the token %KeyboardLayout%.

Just want to mention. I experience some issue with the set keyboard layout action.
See the discussion in my post recent with the solution I'm using now: