Refactoring install

This commit is contained in:
2026-03-15 16:24:30 +00:00
parent 10939f2ea3
commit b3637e4d6f
19 changed files with 234 additions and 88 deletions

View File

@@ -0,0 +1,28 @@
#! /bin/zsh
key="$1"
url="$2"
also_webapp="$3:-true"
label="$4:-$key"
echo "Signing into $key..."
read -r username password <<< "$(station-get-username-password "$label")"
echo -n "$username" | wl-copy
station-launch-browser "$url"
if [[ "$also_webapp" == "true" ]]; then
exec setsid uwsm-app -- chromium "$url" 2>/dev/null &
fi
station-confirm-or-close "$key Setup" "Email copied.\nPress OK for password"
echo -n "$password" | wl-copy
station-confirm-or-close "$key Setup" "Click OK when you have finished logging in to move on."
echo -n "" | wl-copy
echo "Finished setting up $key."