I looked around and couldn't figure it out, but is there any data passed to actions from the trigger that triggered them?
For example if the trigger is "on active input source changed", it's the a way to get the language change that caused the action to run without querying the current input source with external api?
Usually for such triggers I also set the value to a variable, but I forgot it in this case. With the next alpha the layout will be available in this variable once the trigger has been executed: CurrentKeyboardInputSource