8 lines
773 B
Bash
8 lines
773 B
Bash
#!/bin/sh
|
|
# B13W: Cage (wlroots 0.20, Pixman) fullscreen on the ST7735S with the test UI. STOP_X=1 stops X11 first (X11 itself untouched).
|
|
. /usr/local/lib/b13/run/wl-common.sh
|
|
x_guard; seatd_up; t0=$(now)
|
|
setsid cage -d -s -- foot -o font=DejaVu\ Sans\ Mono:pixelsize=9 -o pad=0x0 -o colors.background=000000 -o csd.preferred=none -a b13 sh /usr/local/lib/b13/run/pattern.sh CAGE > $S/cage.log 2>&1 < /dev/null &
|
|
echo $! > $S/cage.pid; W=$(wait_socket) || { log "FAIL: cage socket (see $S/cage.log)"; tail -20 $S/cage.log; exit 1; }
|
|
echo $W > $S/wayland-display; i=0; while ! pidof foot >/dev/null && [ $i -lt 100 ]; do sleep 0.1; i=$((i+1)); done
|
|
log "CAGE UP socket=$W pid=$(pidof cage) foot=$(pidof foot) start=$(awk -v a=$t0 -v b=$(now) 'BEGIN{printf "%.2f", b-a}')s"
|