Files
blackroad/bin/br-gui
Alexa Amundson 78fbe80f2a Initial monorepo — everything BlackRoad in one place
bin/       230 CLI tools (ask-*, br-*, agent-*, roadid, carpool)
scripts/   99 automation scripts
fleet/     Node configs and deployment
workers/   Cloudflare Worker sources (roadpay, road-search, squad webhooks)
roadc/     RoadC programming language
roadnet/   Mesh network (5 APs, WireGuard)
operator/  Memory system scripts
config/    System configs
dotfiles/  Shell configs
docs/      Documentation

BlackRoad OS — Pave Tomorrow.

RoadChain-SHA2048: d1a24f55318d338b
RoadChain-Identity: alexa@sovereign
RoadChain-Full: d1a24f55318d338b24b60bad7be39286379c76ae5470817482100cb0ddbbcb97e147d07ac7243da0a9f0363e4e5c833d612b9c0df3a3cd20802465420278ef74875a5b77f55af6fe42a931b8b635b3d0d0b6bde9abf33dc42eea52bc03c951406d8cbe49f1a3d29b26a94dade05e9477f34a7d4d4c6ec4005c3c2ac54e73a68440c512c8e83fd9b1fe234750b898ef8f4032c23db173961fe225e67a0432b5293a9714f76c5c57ed5fdf35b9fb40fd73c03ebf88b7253c6a0575f5afb6a6b49b3bda310602fb1ef676859962dad2aebbb2875814b30eee0a8ba195e482d4cbc91d8819e7f38f6db53e8063401649c77bb994371473cabfb917fb53e8cbe73d60
2026-03-14 17:08:41 -05:00

110 lines
3.7 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# br-gui - Quick launcher for BlackRoad terminal GUI
# Usage: br-gui <preset>
PINK='\033[38;5;205m'
BLUE='\033[38;5;75m'
PURPLE='\033[38;5;141m'
ORANGE='\033[38;5;208m'
RESET='\033[0m'
case "${1:-help}" in
dashboard|dash)
echo -e "${PINK}Launching Dashboard...${RESET}"
~/br-container.sh dashboard 140 45
;;
grid|g)
rows="${2:-2}"
cols="${3:-2}"
echo -e "${PINK}Launching ${rows}×${cols} Grid...${RESET}"
~/br-container.sh grid "$rows" "$cols" 120 40
;;
split|s)
direction="${2:-horizontal}"
echo -e "${PINK}Launching ${direction} split...${RESET}"
~/br-container.sh "${direction}" 100 30
;;
web|w)
url="${2:-https://blackroad.io}"
echo -e "${PINK}Rendering: $url${RESET}"
~/br-web-render.sh --boxed "$url" 120
;;
monitor|mon)
# System monitoring dashboard
echo -e "${PINK}System Monitor${RESET}"
~/br-container.sh dashboard 140 45 &
sleep 1
# Could populate with real data
echo -e "${BLUE}Use panes to show: top, df, ps, netstat${RESET}"
;;
demo|d)
~/br-gui-demo.sh
;;
window|win)
name="${2:-My Window}"
~/br-window-manager.sh create "$name" 40 120
;;
list|ls)
~/br-window-manager.sh list
;;
check)
echo -e "${BLUE}Checking system...${RESET}\n"
echo -e "Scripts:"
ls -1 ~/br-container.sh ~/br-window-manager.sh ~/br-web-render.sh 2>/dev/null | \
while read f; do echo -e " ${PURPLE}${RESET} $(basename $f)"; done
echo ""
echo -e "Web renderer:"
~/br-web-render.sh --check
echo ""
echo -e "Windows:"
count=$(find ~/.br-windows -name '*.json' 2>/dev/null | wc -l | tr -d ' ')
echo -e " ${BLUE}$count${RESET} defined"
;;
clean)
echo -e "${ORANGE}Cleaning window state...${RESET}"
rm -rf ~/.br-windows/*.json ~/.br-windows/*.content
echo -e "${PURPLE}${RESET} Cleaned"
;;
help|*)
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${RESET}"
echo -e "${PINK} BlackRoad Terminal GUI Launcher ${RESET}"
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${RESET}"
echo ""
echo -e "${BLUE}Quick Commands:${RESET}"
echo -e " ${PURPLE}dashboard${RESET} - Launch 3-column dashboard"
echo -e " ${PURPLE}grid${RESET} [r] [c] - Launch grid (default 2×2)"
echo -e " ${PURPLE}split${RESET} [h|v] - Launch split layout"
echo -e " ${PURPLE}web${RESET} [url] - Render web page"
echo -e " ${PURPLE}monitor${RESET} - System monitoring view"
echo -e " ${PURPLE}window${RESET} [name] - Create new window"
echo -e " ${PURPLE}demo${RESET} - Interactive demo"
echo ""
echo -e "${BLUE}Management:${RESET}"
echo -e " ${PURPLE}list${RESET} - List all windows"
echo -e " ${PURPLE}check${RESET} - System check"
echo -e " ${PURPLE}clean${RESET} - Clean window state"
echo ""
echo -e "${ORANGE}Examples:${RESET}"
echo -e " ${BLUE}br-gui dashboard${RESET}"
echo -e " ${BLUE}br-gui grid 3 4${RESET}"
echo -e " ${BLUE}br-gui web https://blackroad.io${RESET}"
echo -e " ${BLUE}br-gui split vertical${RESET}"
echo ""
echo -e "${GRAY}Full docs:${RESET} ~/BR_GUI_SYSTEM_GUIDE.md"
;;
esac