This subject came up a couple years ago but after searching more I don't see where it may have been resolved.
I'd like to execute a shell script and capture its output for display in the HUD overlay.
I can create a StreamDeck button that shows the HUD and I know how to embed variables into the displayed text by wrapping them in braces. What I'm missing is, how do I assign the output of the shell script to a variable BTT can access?
In the latest alpha (3.9996) the result will be saved in the variable BTTLastTerminalCommandResult. I'll make that configurable in the future.
Depending on the action you use to execute the command / shell script, the execution will be async and BTT will not wait before it executes the show hud action. Thus you might need to add the "async delay" action .
Interestingly, though, my existing Javascript solution using callBTT('set_string_variable... doesn't work under 3.9997. The variable no longer gets set. Just FYI.