windows: the app's skeleton: the service from GPUI, an overview
- bridge: ps-client on a tokio runtime of its own, awaited from GPUI's executor; log following as a channel that reconnects. - model: status polled every 2 s (outbounds every fifth round and on a reconnect), the zapret presets and tg links on connecting, and changes sent through ps-client's edits; what came of each is a notification, the service's own words when it refuses or cannot apply. - The window: a sidebar of pages; the overview shows the local proxy, the DPI bypass and the Telegram proxy with their states and switches, and what the service warns of. The other pages come next. - Icons: the components' own and the few the app adds, not all of Lucide. - zapret's engines by upstream's names (zapret-discord-youtube, zapret2). - gui-shot.sh can click before the shot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
63aede0dc1
commit
d3ba00087d
11 files changed
+654
-21
No files matched your search
@@ -4,7 +4,8 @@
|
||||
#
|
||||
# tools/gui-shot.sh OUT.png [SECONDS] [-- APP ARGS...] (APP=target/debug/proxy-suite)
|
||||
#
|
||||
# With SHOT_KEYS="key ..." the keys (xdotool names) are typed into the window before the shot.
|
||||
# Before the shot, SHOT_CLICKS="X,Y ..." clicks those screen points, and SHOT_KEYS="key ..."
|
||||
# types those keys (xdotool names), each followed by a moment for the app to answer.
|
||||
set -euo pipefail
|
||||
OUT=$(realpath -m "${1:?the screenshot, a .png}"); shift
|
||||
WAIT=6
|
||||
@@ -29,6 +30,10 @@ env -u WAYLAND_DISPLAY DISPLAY=":$n" VK_ICD_FILENAMES="$MESA/share/vulkan/icd.d/
|
||||
APID=$!
|
||||
sleep "$WAIT"
|
||||
kill -0 "$APID" 2>/dev/null || { echo "the app exited:"; tail -20 "${OUT%.png}.log"; exit 1; }
|
||||
for point in ${SHOT_CLICKS:-}; do
|
||||
DISPLAY=":$n" "$XDOTOOL/bin/xdotool" mousemove "${point%,*}" "${point#*,}" click 1
|
||||
sleep 1.5
|
||||
done
|
||||
if [ -n "${SHOT_KEYS:-}" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
DISPLAY=":$n" "$XDOTOOL/bin/xdotool" key --delay 150 $SHOT_KEYS
|
||||
|
||||
Reference in new issue
Block a user