aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commit64e850217ad57714856617c82e48994da6989535 (patch)
tree6fb8f4fe3c6b1cd38bb45c1c618010fc9dfbd984 /bin
parent19732a1d65100abc9f98b0fbf0285168f45c4219 (diff)
Fireup now starts in minimal mode.
[#25] Fireup plugin takes advantage of new command line options to load simulations in minimal mode and already running.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/plugins/fireup.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/plugins/fireup.py b/bin/plugins/fireup.py
index 7fe86ef..48391ff 100755
--- a/bin/plugins/fireup.py
+++ b/bin/plugins/fireup.py
@@ -9,7 +9,8 @@ Email: paul.t.oliver.design@gmail.com
NOTE: REQUIRES TMUX TO WORK!
Use this script to run one (or several) previously saved simulations in the
-background. Each simulator will run inside a tmux session.
+background. Each simulator will be started inside a tmux session, already
+running and in minimal mode.
Remember to give this file correct permissions (chmod +x). To use, call it
followed by an autosave interval (mandatory) and the list of save-files to
@@ -65,10 +66,10 @@ print("Firing up Salis simulations.")
for fname in args.files:
session = "salis-{}".format(fname).replace(".", "-")
- salis_cmd = "{} load -f {} -a {}".format(salis, fname, args.auto)
+ salis_cmd = "{} -m -r load -f {} -a {}".format(salis, fname, args.auto)
subprocess.run(["tmux", "new-session", "-d", "-s", session])
subprocess.run(["tmux", "send-keys", "-t", session, salis_cmd])
- subprocess.run(["tmux", "send-keys", "-t", session, "Enter", "Space"])
+ subprocess.run(["tmux", "send-keys", "-t", session, "Enter"])
print("New tmux session '{}' is running '{}' in the background.".format(
session, fname
))