From d599a98a76ea74e91307fe5fef5b3a40d835a6c3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 4 Aug 2025 19:50:03 +0200 Subject: [PATCH] Allow updating themes --- bin/omarchy-menu | 3 ++- bin/omarchy-theme-update | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-menu b/bin/omarchy-menu index d4ccf48b..62a92b62 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -87,8 +87,9 @@ show_install_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 ;; + *Themes*) terminal $OMARCHY_BIN_PATH/omarchy-theme-update ;; *Timezone*) $OMARCHY_BIN_PATH/omarchy-cmd-tzupdate ;; *) show_main_menu ;; esac diff --git a/bin/omarchy-theme-update b/bin/omarchy-theme-update index c5e08c11..32142aa5 100755 --- a/bin/omarchy-theme-update +++ b/bin/omarchy-theme-update @@ -1,4 +1,12 @@ #!/bin/bash + +# Show logo +clear +cat <~/.local/share/omarchy/logo.txt + for dir in ~/.config/omarchy/themes/*/; do - [ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull -done \ No newline at end of file + [ -d "$dir" ] && [ ! -L "${dir%/}" ] && echo "Updating: $(basename "$dir")" && git -C "$dir" pull +done + +gum spin --spinner "globe" --title "Done!" -- sleep 2 +