Use a header that won't fold on a small screen

This commit is contained in:
David Heinemeier Hansson
2025-07-22 16:38:30 -04:00
parent c0bb83e76c
commit 03192de90e

View File

@ -1,6 +1,16 @@
#!/bin/bash
source ~/.local/share/omarchy/ansi.sh
# Read the manual if you have any questions while we install
setsid gtk-launch "Omarchy Manual" >/dev/null 2>&1 &
header() {
clear
gum style \
--foreground 212 --border-foreground 213 --border double --margin "1 0" --padding "1 3" \
"Welcome to Omarchy!"
}
header
if gum confirm "Install editor in addition to Neovim?"; then
options=("VSCode" "Cursor" "Zed" "Helix" "Nevermind")
@ -15,20 +25,20 @@ if gum confirm "Install editor in addition to Neovim?"; then
esac
fi
source ~/.local/share/omarchy/ansi.sh
header
if gum confirm "Setup Dropbox?"; then
gtk-launch chromium # FIXME: Workaround for Dropbox to be able to open with the correct scaling during initial setup
~/.local/share/omarchy/bin/omarchy-setup-dropbox
fi
source ~/.local/share/omarchy/ansi.sh
header
if gum confirm "Login to GitHub?"; then
gh auth login
fi
source ~/.local/share/omarchy/ansi.sh
header
if gum confirm "Start Docker DBs?"; then
options=("MySQL" "Redis" "PostgreSQL")
@ -45,10 +55,10 @@ if gum confirm "Start Docker DBs?"; then
fi
fi
source ~/.local/share/omarchy/ansi.sh
header
echo "Updating all system packages..."
yay -Syu --noconfirm
setsid gtk-launch "Omarchy Manual" >/dev/null 2>&1 &
gum spin --spinner "globe" --title "You're all set!" -- sleep 2
clear