Repository navigation
Sending commands from shell script to Pinnacle #217
Answered
by
Ottatop
justinesmithies
asked this question in
Q&A
|
Is it possible to send commands ran from a bash script as you can using say |
Answered by
Ottatop
Apr 22, 2024
Replies: 1 comment
Yes, but you'll need to use the Lua API and either
If you're not limited to bash you can also run executable Lua files directly. For the specifics, you can run the require("pinnacle").run(function(Pinnacle)
-- Anything you can run in a normal Lua config you can use here
end)Just note the following caveats:
If you need to print output from the script in json you can install luarocks install --local lua-cjsonand print tables as json with print(require("cjson").encode(<your table here>)) |
0 replies
Answer selected by
justinesmithies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, but you'll need to use the Lua API and either
lua:If you're not limited to bash you can also run executable Lua files directly.
For the specifics, you can run the
runfunction (notsetup, this will block):Just note the following caveats:
runreturns you'll lose those keybinds. This may be changed in …