You really shouldn't have to mess with these regularly, so let's just use Update for Omarchy only

This commit is contained in:
David Heinemeier Hansson
2025-08-03 15:34:31 +02:00
parent a9b9cbfa34
commit d3fff87864

View File

@ -21,41 +21,16 @@ main_menu() {
ack_command ack_command
main_menu main_menu
;; ;;
Update) update_menu ;; Update)
omarchy-update
main_menu
;;
Setup) setup_menu ;; Setup) setup_menu ;;
Manual) open_manual ;; Manual) open_manual ;;
Exit) clear && exit 0 ;; Exit) clear && exit 0 ;;
esac esac
} }
update_menu() {
show_ascii_art
local menu=("Omarchy" "Waybar" "Walker" "Plymouth" "SwayOSD" "Desktop apps" "Back")
local commands=(
"omarchy-update"
"omarchy-refresh-waybar"
"omarchy-refresh-walker"
"omarchy-refresh-plymouth"
"omarchy-refresh-swayosd"
"omarchy-refresh-applications"
"main_menu"
)
local choice
choice=$(printf "%s\n" "${menu[@]}" | gum choose --header="Update") || main_menu
for i in "${!menu[@]}"; do
if [[ "${menu[$i]}" == "$choice" ]]; then
if [[ "$choice" == "Back" ]]; then
main_menu
else
eval "${commands[$i]}"
ack_command
main_menu
fi
break
fi
done
}
theme_menu() { theme_menu() {
show_ascii_art show_ascii_art
local menu=("Pick" "Install" "Update" "Remove" "Back") local menu=("Pick" "Install" "Update" "Remove" "Back")