From 44a3ca8a0fe266bfbb7b55923f2e88e5a6caf0e6 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Mon, 5 Jan 2026 19:20:49 -0500 Subject: [PATCH] Compact first-boot-wizard output for smaller terminals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove sparkle decoration lines from banner - Reduce padding and margins on boxes - Condense first steps to single line - Condense commands to single line - Simplify restart notice (no bordered box) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rpi/first-boot-wizard.sh | 54 ++++++++++++---------------------------- 1 file changed, 16 insertions(+), 38 deletions(-) diff --git a/rpi/first-boot-wizard.sh b/rpi/first-boot-wizard.sh index 76fa1a0..1aba15c 100755 --- a/rpi/first-boot-wizard.sh +++ b/rpi/first-boot-wizard.sh @@ -384,19 +384,16 @@ else ACCESS_URL_LOCAL="http://$HOSTNAME.local:5000/setup" fi +echo "" gum style \ --border double \ --border-foreground 82 \ - --padding "1 2" \ - --margin "1" \ + --padding "0 2" \ --align center \ - " . * . . * . * . * . * ." \ " ___ _____ ___ ___ _ ___ ___ ___" \ - " / __||_ _|| __| / __| /_\\ / __| / _ \\ / _ \\" \ - " \\__ \\ | | | _| | (_ | / _ \\ \\__ \\ | (_) || (_) |" \ - " |___/ |_| |___| \\___//_/ \\_\\|___/ \\___/ \\___/" \ - "" \ - " * . * . * . * . * . *" \ + " / __||_ _|| __| / __| /_\\ / __| / _ \\ / _ \\" \ + " \\__ \\ | | | _| | (_ | / _ \\ \\__ \\ | (_) || (_) |" \ + " |___/ |_| |___| \\___//_/ \\_\\|___/ \\___/ \\___/" \ "" \ "Setup Complete!" @@ -404,52 +401,33 @@ echo "" gum style --foreground 82 --bold "Create your admin account:" gum style --foreground 226 " $ACCESS_URL" gum style --foreground 245 " $ACCESS_URL_LOCAL (if mDNS works)" -echo "" if [ -n "$CHANNEL_KEY" ]; then - gum style --foreground 82 --bold "Channel Key:" - gum style --foreground 226 " $CHANNEL_KEY" echo "" + gum style --foreground 82 --bold "Channel Key:" --inline + gum style --foreground 226 " $CHANNEL_KEY" fi +echo "" gum style --foreground 82 --bold "First Steps:" -gum style --foreground 255 \ - " 1. Open the URL above in your browser" \ - " 2. Accept the security warning (self-signed cert)" \ - " 3. Create your admin account" \ - " 4. Start encoding secret messages!" -echo "" +gum style --foreground 255 " 1. Open URL → 2. Accept cert → 3. Create admin → 4. Encode!" -gum style --foreground 82 --bold "Useful Commands:" -gum style --foreground 245 \ - " sudo systemctl status stegasoo # Check status" \ - " sudo systemctl restart stegasoo # Restart" \ - " journalctl -u stegasoo -f # View logs" -echo "" - -gum style --foreground 212 --bold "Enjoy Stegasoo!" echo "" +gum style --foreground 245 "Commands: systemctl {status|restart} stegasoo, journalctl -u stegasoo -f" # Prompt for restart if overclock was enabled if [ "$NEEDS_RESTART" = "true" ]; then echo "" - gum style \ - --border rounded \ - --border-foreground 226 \ - --padding "1 2" \ - --foreground 226 \ - "Restart Required" \ - "" \ - "Overclock settings require a restart to take effect." - echo "" - + gum style --foreground 226 --bold "⚠ Restart required for overclock settings" if gum confirm "Restart now?" --default=true; then gum style --foreground 82 "Restarting in 3 seconds..." sleep 3 sudo reboot else - gum style --foreground 214 "Remember to restart later for overclock to take effect:" - gum style --foreground 245 " sudo reboot" - echo "" + gum style --foreground 214 "Run 'sudo reboot' later to apply overclock." fi fi + +echo "" +gum style --foreground 212 --bold "Enjoy Stegasoo!" +echo ""