diff --git a/bin/omarchy-webapp-install b/bin/omarchy-webapp-install index a66dcabd..f861e00a 100755 --- a/bin/omarchy-webapp-install +++ b/bin/omarchy-webapp-install @@ -6,7 +6,7 @@ if [ "$#" -lt 3 ]; then echo -e "\e[32mLet's create a new web app you can start with the app launcher.\n\e[0m" APP_NAME=$(gum input --prompt "Name> " --placeholder "My favorite web app") APP_URL=$(gum input --prompt "URL> " --placeholder "https://example.com") - ICON_REF=$(gum input --prompt "Icon URL> " --placeholder "See https://dashboardicons.com (must use PNG!)") + ICON_REF=$(gum input --prompt "Icon URL> " --placeholder "See https://dashboardicons.com (must use PNG or leave blank to use the default web app icon)") CUSTOM_EXEC="" MIME_TYPES="" INTERACTIVE_MODE=true @@ -19,6 +19,10 @@ else INTERACTIVE_MODE=false fi +if [[ -z "$ICON_REF" ]]; then + ICON_REF="https://www.google.com/s2/favicons?domain=${APP_URL}&sz=128" +fi + # Ensure valid execution if [[ -z "$APP_NAME" || -z "$APP_URL" || -z "$ICON_REF" ]]; then echo "You must set app name, app URL, and icon URL!"