hyagency

Isolated hyprland desktop for agents.
git clone https://unitehenry.com/git/hyagency.git
Log | Files | Refs | README

commit 4f7ec4fd621eb5245ec08a2357924da52304a674
parent ee55080044000684fc6ebfb0f2dc51409c85fce5
Author: Henry Unite <unitehenry@gmail.com>
Date:   Wed,  1 Jul 2026 03:17:04 +0000

feat: forward ports

Diffstat:
Mscripts/connect | 18+++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/scripts/connect b/scripts/connect @@ -2,6 +2,8 @@ set -euo pipefail +declare -a SSH_PIDS + cleanup() { sudo docker rm -f guacamole; sudo docker rm -f guacd; @@ -11,6 +13,14 @@ cleanup() { pkill -f chromium; hyprctl output remove Virtual-1 + + for pid in "${SSH_PIDS[@]}"; do + if kill -0 "$pid" 2>/dev/null; then + echo " Killing SSH PID $pid" + kill "$pid" 2>/dev/null || true + wait "$pid" 2>/dev/null || true + fi + done } trap cleanup EXIT @@ -35,7 +45,7 @@ nohup wayvnc 0.0.0.0 5900 "Virtual-1" > wayvnc.out & nohup chromium --user-data-dir="$(pwd)/chrome-profile" --remote-debugging-port=9222 > chromium.out & -nohup opencode web --hostname=0.0.0.0 > opencode.out & +nohup opencode web --hostname=0.0.0.0 --port=4090 > opencode.out & sleep 2 @@ -54,4 +64,10 @@ done hyprctl keyword monitor Virtual-1,preferred,auto,1 +ssh -f -N -R 8080:127.0.0.1:8080 root@142.93.14.238 +SSH_PIDS+=($!) + +ssh -f -N -R 4090:127.0.0.1:4090 root@142.93.14.238 +SSH_PIDS+=($!) + sleep infinity