diff --git a/flatpak_selections b/flatpak_selections index 260186a..1cc8ee1 100644 --- a/flatpak_selections +++ b/flatpak_selections @@ -21,7 +21,9 @@ fi # Build menu options MENU_OPTIONS=() for SCRIPT in "${SCRIPTS[@]}"; do - MENU_OPTIONS+=("$SCRIPT" "$SCRIPT") + # Remove underscores and capitalize first letter of each word + DISPLAY_NAME=$(echo "$SCRIPT" | sed 's/_/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)} 1') + MENU_OPTIONS+=("$SCRIPT" "$DISPLAY_NAME") done # Show menu with the new title