Rebrand as Playpen.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Run vtabs inside a throwaway headless Sway and screenshot it.
|
||||
# Run playpen inside a throwaway headless Sway and screenshot it.
|
||||
#
|
||||
# This keeps UI checks out of the developer's real Wayland session: nothing
|
||||
# pops up on screen, and it works even while the session is locked.
|
||||
@@ -8,7 +8,7 @@
|
||||
set -u
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
OUT="${1:-/tmp/vtabs-shot.png}"
|
||||
OUT="${1:-/tmp/playpen-shot.png}"
|
||||
KEYS="${2:-}"
|
||||
SETTLE="${3:-2}"
|
||||
|
||||
@@ -23,14 +23,14 @@ CONF
|
||||
|
||||
# The nix dev shell exports bash functions into the environment. Any /bin/sh
|
||||
# the terminal's child spawns tries to import them and spews parse errors that
|
||||
# have nothing to do with vtabs, so drop them just before exec.
|
||||
# have nothing to do with playpen, so drop them just before exec.
|
||||
cat > "$RUNDIR/launch.sh" <<'LAUNCH'
|
||||
#!/usr/bin/env bash
|
||||
while read -r fn; do unset -f "$fn" 2>/dev/null; done < <(declare -Fx | awk '{print $3}')
|
||||
exec "$VTABS_BIN"
|
||||
exec "$PLAYPEN_BIN"
|
||||
LAUNCH
|
||||
chmod +x "$RUNDIR/launch.sh"
|
||||
export VTABS_BIN="$PWD/zig-out/bin/vtabs"
|
||||
export PLAYPEN_BIN="$PWD/zig-out/bin/playpen"
|
||||
|
||||
export WLR_BACKENDS=headless
|
||||
export WLR_LIBINPUT_NO_DEVICES=1
|
||||
@@ -96,7 +96,7 @@ if [ -n "$KEYS" ]; then
|
||||
sleep 1.5
|
||||
fi
|
||||
|
||||
if [ -n "${VTABS_SHOT_DEBUG:-}" ]; then
|
||||
if [ -n "${PLAYPEN_SHOT_DEBUG:-}" ]; then
|
||||
echo "--- swaymsg get_tree (apps) ---" >&2
|
||||
swaymsg -t get_tree 2>&1 | grep -E '"(app_id|name|pid)"' | head -30 >&2
|
||||
echo "--- sway log ---" >&2
|
||||
|
||||
Reference in New Issue
Block a user