Allow updating themes

This commit is contained in:
David Heinemeier Hansson 2025-08-04 19:50:03 +02:00
parent b2ab061e3c
commit d599a98a76
2 changed files with 12 additions and 3 deletions

View File

@ -87,8 +87,9 @@ show_install_menu() {
} }
show_update_menu() { show_update_menu() {
case $(menu "Update" "󰣇 Omarchy ($OMARCHY_VERSION)\n Timezone") in case $(menu "Update" "󰣇 Omarchy ($OMARCHY_VERSION)\n󰸌 Themes\n Timezone") in
*Omarchy*) terminal $OMARCHY_BIN_PATH/omarchy-update ;; *Omarchy*) terminal $OMARCHY_BIN_PATH/omarchy-update ;;
*Themes*) terminal $OMARCHY_BIN_PATH/omarchy-theme-update ;;
*Timezone*) $OMARCHY_BIN_PATH/omarchy-cmd-tzupdate ;; *Timezone*) $OMARCHY_BIN_PATH/omarchy-cmd-tzupdate ;;
*) show_main_menu ;; *) show_main_menu ;;
esac esac

View File

@ -1,4 +1,12 @@
#!/bin/bash #!/bin/bash
# Show logo
clear
cat <~/.local/share/omarchy/logo.txt
for dir in ~/.config/omarchy/themes/*/; do for dir in ~/.config/omarchy/themes/*/; do
[ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull [ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull
done done
gum spin --spinner "globe" --title "Done!" -- sleep 2