aboutsummaryrefslogtreecommitdiffstats
path: root/web/recordings
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-30 14:18:57 +0200
committeruser <user@clank>2026-08-30 14:18:57 +0200
commita4e1bb12760c2b9768e2917e41ac4600dcdf3156 (patch)
tree51bdafee58c62a542dd2e1f295a30f71bc824798 /web/recordings
parentweb: sloshcast (diff)
downloadslosh-a4e1bb12760c2b9768e2917e41ac4600dcdf3156.tar.gz
slosh-a4e1bb12760c2b9768e2917e41ac4600dcdf3156.tar.xz
slosh-a4e1bb12760c2b9768e2917e41ac4600dcdf3156.zip
web: a whole lot of html/css wrangling
Diffstat (limited to 'web/recordings')
-rw-r--r--web/recordings/demos/config.py6
-rw-r--r--web/recordings/demos/reflow.py15
-rw-r--r--web/recordings/demos/scripting.py14
-rw-r--r--web/recordings/demos/shaders.py7
4 files changed, 34 insertions, 8 deletions
diff --git a/web/recordings/demos/config.py b/web/recordings/demos/config.py
index b8509ab..760ca59 100644
--- a/web/recordings/demos/config.py
+++ b/web/recordings/demos/config.py
@@ -23,15 +23,15 @@ shutil.copyfile(THEME, cfg)
r = Recorder(["/bin/sh"], cols=100, rows=28, title="make it yours", config=cfg, env=ENV)
-# A neighbour with something on it, so geometry changes have a witness.
-r.api("split", dir="cols")
+# Something on the one pane, so geometry changes have a witness. No neighbour
+# beyond that: the editor C-a e opens is the only split, and gets half the
+# window to itself.
r.capture(force=True)
r.pause(0.6)
r.run(
"for i in 1 1 2 2 3 3 4 4 5 5 6 6; do"
" printf '\\033[4%sm%-40s\\033[0m\\n' $i ' '; done"
)
-r.api("focus", id=sorted(p["id"] for p in r.api("panes")["panes"])[0])
r.capture(dt=0.4)
r.pause(0.8)
diff --git a/web/recordings/demos/reflow.py b/web/recordings/demos/reflow.py
index 5287650..d9afc2a 100644
--- a/web/recordings/demos/reflow.py
+++ b/web/recordings/demos/reflow.py
@@ -10,11 +10,22 @@ import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from castgen import Recorder, out_path
+from castgen import ROOT, Recorder, out_path
ENV = {"PS1": "$ ", "ENV": "/dev/null"}
-r = Recorder(["/bin/sh"], cols=100, rows=28, title="layouts that reflow", env=ENV)
+# Slate, not the house pink: each cast in the tour records under its own
+# theme, so scrolling to the next step reads as a scene change.
+THEME = os.path.join(ROOT, "contrib", "themes", "slate.kdl")
+
+r = Recorder(
+ ["/bin/sh"],
+ cols=100,
+ rows=28,
+ title="layouts that reflow",
+ config=THEME,
+ env=ENV,
+)
# Three named panes, built over the socket -- the demo is about the layout.
r.api("split", dir="cols")
diff --git a/web/recordings/demos/scripting.py b/web/recordings/demos/scripting.py
index 65ee4f5..a3a2ac8 100644
--- a/web/recordings/demos/scripting.py
+++ b/web/recordings/demos/scripting.py
@@ -15,10 +15,14 @@ import sys
import tempfile
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from castgen import Recorder, out_path
+from castgen import ROOT, Recorder, out_path
ENV = {"PS1": "$ ", "ENV": "/dev/null"}
+# Amber, not the house pink: each cast in the tour records under its own
+# theme, so scrolling to the next step reads as a scene change.
+THEME = os.path.join(ROOT, "contrib", "themes", "amber.kdl")
+
work = tempfile.mkdtemp(prefix="slosh-demo-")
# The left pane's shell: reads a line, answers like the socket does. The
@@ -63,7 +67,13 @@ with open(lay, "w") as f:
)
r = Recorder(
- ["/bin/sh"], cols=100, rows=28, title="built to be driven", env=ENV, layout=lay
+ ["/bin/sh"],
+ cols=100,
+ rows=28,
+ title="built to be driven",
+ config=THEME,
+ env=ENV,
+ layout=lay,
)
r.capture(force=True, settle_ms=150)
diff --git a/web/recordings/demos/shaders.py b/web/recordings/demos/shaders.py
index 889b0de..f7ce3ac 100644
--- a/web/recordings/demos/shaders.py
+++ b/web/recordings/demos/shaders.py
@@ -16,10 +16,15 @@ import sys
import tempfile
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from castgen import ROOT, THEME, Recorder, out_path
+from castgen import ROOT, Recorder, out_path
ENV = {"PS1": "$ ", "ENV": "/dev/null"}
+# Mono, not the house pink: this demo is about colour passes, so the base
+# theme is the one without colour -- every hue on screen is a shader's. It
+# also gives this cast its own look in the tour's theme rotation.
+THEME = os.path.join(ROOT, "contrib", "themes", "mono.kdl")
+
work = tempfile.mkdtemp(prefix="slosh-demo-")
cfg = os.path.join(work, "config.kdl")
with open(cfg, "w") as f: